fix multipart parsing error

This commit is contained in:
Chunting Gu
2020-12-10 13:50:44 +08:00
committed by GitHub
parent ca2c80de81
commit 8fd353e8d5
+1 -6
View File
@@ -113,12 +113,7 @@ bool RequestParser::ParseMultipartContent(const char* data,
bool ended = false; bool ended = false;
// TODO: Remember last CRLF position. // TODO: Remember last CRLF position.
if (!GetNextBoundaryLine(&off, &count, &ended)) {
bool next_boundary_found = GetNextBoundaryLine(&off, &count, &ended);
if (!next_boundary_found) {
part_->AppendData(pending_data_);
pending_data_.clear();
break; break;
} }