Преглед на файлове

Fixed regex problem with Apple LLVM version 8.0.0

Hirose Family преди 6 години
родител
ревизия
94d13e88a5
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      httplib.h

+ 1 - 1
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(