This commit is contained in:
yhirose 2018-04-14 18:42:56 -04:00
parent 5536d4c1ff
commit 0e239a0014
2 changed files with 4 additions and 3 deletions

View file

@ -1026,10 +1026,11 @@ inline bool parse_multipart_formdata(
static std::string crlf = "\r\n";
static std::regex re_content_type(
"Content-Type: (.*?)");
"Content-Type: (.*?)", std::regex_constants::icase);
static std::regex re_content_disposition(
"Content-Disposition: form-data; name=\"(.*?)\"(?:; filename=\"(.*?)\")?");
"Content-Disposition: form-data; name=\"(.*?)\"(?:; filename=\"(.*?)\")?",
std::regex_constants::icase);
auto dash_boundary = dash + boundary;