Skip to content

Commit

Permalink
move ehttp version to single file
Browse files Browse the repository at this point in the history
  • Loading branch information
hongliuliao committed Feb 22, 2019
1 parent b93149e commit b53df8a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/ehttp_version.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#ifndef EHTTP_VERSION_H
#define EHTTP_VERSION_H

#define EHTTP_VERSION "1.0.3"

#endif
2 changes: 1 addition & 1 deletion src/sim_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
#include "http_parser.h"
#include "string_utils.h"
#include "multipart_parser.h"
#include "ehttp_version.h"

#define MAX_REQ_SIZE 10485760
#define EHTTP_VERSION "1.0.3"

std::string RequestParam::get_param(std::string &name) {
std::multimap<std::string, std::string>::iterator i = this->_params.find(name);
Expand Down
5 changes: 5 additions & 0 deletions src/string_utils.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
#ifndef STRING_UTILS_H
#define STRING_UTILS_H

#include <string>
#include <vector>

int ss_split_str(const std::string &input, const char s,
std::vector<std::string> &tokens);

int ss_str_tolower(std::string &input);

#endif

0 comments on commit b53df8a

Please sign in to comment.