We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2783757 commit ac5822cCopy full SHA for ac5822c
src/http/Http.cpp
@@ -115,11 +115,12 @@ void Http::OnTrailerRecv(std::string msg) {
115
}
116
117
void Http::OnBodyRecv(std::string msg) {
118
- accessLog_g.write("HTTP body: '" + msg + "'", VERBOSE);
119
if (_request.hasHeaderFieldValue("Transfer-Encoding", "chunked")) {
120
if (!endsWith(msg, "\r\n")) return processError("400", "Bad Request", true);
121
msg.erase(msg.size() - 2, 2);
122
+ accessLog_g.write("HTTP body: '" + msg + "'", VERBOSE);
123
+
124
if (_request.isMethod("PUT"))
125
processPutData(msg);
126
else if (_request.isMethod("POST"))
0 commit comments