debug new request parsing

This commit is contained in:
hugogogo
2022-08-11 14:50:56 +02:00
parent 27b4f96618
commit ff77dfd298
6 changed files with 58 additions and 24 deletions

View File

@@ -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++)