Fix payload iteration issue of FormBody; Log form body; ignore body for response of HEAD.

This commit is contained in:
Chunting Gu
2019-07-09 13:18:55 +08:00
parent 3309e7896a
commit b2cbc450b8
21 changed files with 364 additions and 165 deletions
+8
View File
@@ -73,4 +73,12 @@ bool ResponseParser::ParseStartLine(const std::string& line) {
return true;
}
bool ResponseParser::ParseContent(const char* data, std::size_t length) {
if (ignroe_body_) {
Finish();
return true;
}
return Parser::ParseContent(data, length);
}
} // namespace webcc