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
+5 -4
View File
@@ -60,11 +60,12 @@ bool Parser::Parse(const char* data, std::size_t length) {
if (!header_ended_) {
LOG_INFO("HTTP headers will continue in next read.");
return true;
} else {
LOG_INFO("HTTP headers just ended.");
// NOTE: The left data, if any, is still in the pending data.
return ParseContent("", 0);
}
LOG_INFO("HTTP headers just ended.");
// The left data, if any, is still in the pending data.
return ParseContent("", 0);
}
void Parser::Reset() {