From 8fd353e8d579804df8596863abd1ebdf952e6f37 Mon Sep 17 00:00:00 2001 From: Chunting Gu Date: Thu, 10 Dec 2020 13:50:44 +0800 Subject: [PATCH] fix multipart parsing error --- webcc/request_parser.cc | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/webcc/request_parser.cc b/webcc/request_parser.cc index 0585b98..bd0be5f 100644 --- a/webcc/request_parser.cc +++ b/webcc/request_parser.cc @@ -113,12 +113,7 @@ bool RequestParser::ParseMultipartContent(const char* data, bool ended = false; // TODO: Remember last CRLF position. - - bool next_boundary_found = GetNextBoundaryLine(&off, &count, &ended); - - if (!next_boundary_found) { - part_->AppendData(pending_data_); - pending_data_.clear(); + if (!GetNextBoundaryLine(&off, &count, &ended)) { break; }