Update request_parser.cc

handle empty form part
master
Chunting Gu 5 years ago committed by GitHub
parent 613b8ab50f
commit c3643277b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -120,7 +120,7 @@ bool RequestParser::ParseMultipartContent(const char* data,
// Next boundary found. // Next boundary found.
// This part has ended. // This part has ended.
if (off > 2) { if (off >= 2) {
// -2 for excluding the CRLF after the data. // -2 for excluding the CRLF after the data.
part_->AppendData(pending_data_.data(), off - 2); part_->AppendData(pending_data_.data(), off - 2);

Loading…
Cancel
Save