diff --git a/httplib.h b/httplib.h index 71bba16..bce38ef 100644 --- a/httplib.h +++ b/httplib.h @@ -1838,7 +1838,7 @@ inline bool parse_multipart_formdata(const std::string &boundary, static std::string dash = "--"; static std::string crlf = "\r\n"; - static std::regex re_content_type("Content-Type: (.*?)", + static std::regex re_content_type("Content-Type: (.*?)$", std::regex_constants::icase); static std::regex re_content_disposition(