debug new request parsing
This commit is contained in:
@@ -233,7 +233,7 @@ std::string get_line(std::string str, size_t pos = 0, std::string delim = "")
|
||||
return ret_str;
|
||||
}
|
||||
|
||||
std::map<std::string, std::string>
|
||||
size_t
|
||||
parse_http_headers (
|
||||
std::string headers,
|
||||
std::map<std::string, std::string> fields )
|
||||
@@ -243,8 +243,10 @@ std::map<std::string, std::string>
|
||||
std::vector<std::string>::iterator it_end;
|
||||
size_t err = 0;
|
||||
size_t pos;
|
||||
std::string key;
|
||||
std::string val;
|
||||
|
||||
list = ::split_trim(sub, CRLF, ' ');
|
||||
list = ::split_trim(headers, CRLF, ' ');
|
||||
|
||||
it_end = list.end();
|
||||
for (it = list.begin(); it != it_end; it++)
|
||||
|
||||
Reference in New Issue
Block a user