add an example to embed a server in a Qt GUI app

This commit is contained in:
Chunting Gu
2021-01-22 11:34:17 +08:00
parent c3643277b2
commit 233aa5910c
7 changed files with 132 additions and 4 deletions
+2 -1
View File
@@ -118,6 +118,7 @@ bool RequestParser::ParseMultipartContent(const char* data,
}
// Next boundary found.
LOG_INFO("Next boundary found, off=%u", off);
// This part has ended.
if (off >= 2) {
@@ -128,7 +129,7 @@ bool RequestParser::ParseMultipartContent(const char* data,
// +2 for including the CRLF after the boundary.
pending_data_.erase(0, off + count + 2);
} else {
LOG_ERRO("Invalid part data.");
LOG_ERRO("Invalid part data. off=%u", off);
return false;
}