Skip to content

Commit 94d13e8

Browse files
Hirose FamilyHirose Family
authored andcommitted
Fixed regex problem with Apple LLVM version 8.0.0
1 parent 4f9d04c commit 94d13e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

httplib.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1838,7 +1838,7 @@ inline bool parse_multipart_formdata(const std::string &boundary,
18381838
static std::string dash = "--";
18391839
static std::string crlf = "\r\n";
18401840

1841-
static std::regex re_content_type("Content-Type: (.*?)",
1841+
static std::regex re_content_type("Content-Type: (.*?)$",
18421842
std::regex_constants::icase);
18431843

18441844
static std::regex re_content_disposition(

0 commit comments

Comments
 (0)