fix multipart parsing error
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user