From 63385e5e64c2af43340c696b8c9cd3a0e7bde633 Mon Sep 17 00:00:00 2001 From: Eric Zhou Date: Wed, 7 Oct 2020 14:57:04 -0700 Subject: [PATCH] Update multipart.cc --- src/request_body_processor/multipart.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;