Skip to content

Commit ac5822c

Browse files
committed
Update verbose log output
1 parent 2783757 commit ac5822c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/http/Http.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,12 @@ void Http::OnTrailerRecv(std::string msg) {
115115
}
116116

117117
void Http::OnBodyRecv(std::string msg) {
118-
accessLog_g.write("HTTP body: '" + msg + "'", VERBOSE);
119118
if (_request.hasHeaderFieldValue("Transfer-Encoding", "chunked")) {
120119
if (!endsWith(msg, "\r\n")) return processError("400", "Bad Request", true);
121120
msg.erase(msg.size() - 2, 2);
122121
}
122+
accessLog_g.write("HTTP body: '" + msg + "'", VERBOSE);
123+
123124
if (_request.isMethod("PUT"))
124125
processPutData(msg);
125126
else if (_request.isMethod("POST"))

0 commit comments

Comments
 (0)