mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2025-05-15 01:08:27 +00:00
Fix #47
This commit is contained in:
parent
5536d4c1ff
commit
0e239a0014
2 changed files with 4 additions and 3 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue