diff --git a/src/request_body_processor/multipart.cc b/src/request_body_processor/multipart.cc index 032cfd3c61..97867358d6 100644 --- a/src/request_body_processor/multipart.cc +++ b/src/request_body_processor/multipart.cc @@ -1485,7 +1485,7 @@ bool Multipart::process(const std::string& data, std::string *error, will catch all "errors", without any modification, but we can use the new, permission mode with "@eq 1" */ - if (m_boundary_count > 0) { + if (m_boundary_count > 0 && m_flag_unmatched_boundary == 1) { m_flag_unmatched_boundary = 2; } int is_final = 0;