From 94d13e88a5b7162a4566aa01d77b9abce91d7448 Mon Sep 17 00:00:00 2001 From: Hirose Family Date: Sun, 3 Nov 2019 19:27:12 -0500 Subject: [PATCH] Fixed regex problem with Apple LLVM version 8.0.0 --- httplib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(