Fix: #746 Compile error under VS2015 (#747)

Co-authored-by: jigarcia@vaxtor.es <jigarcia@vaxtor.es>
This commit is contained in:
vawen 2020-11-10 14:41:53 +01:00 committed by GitHub
parent f086bf5310
commit 9c7d841b37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2979,9 +2979,8 @@ public:
bool is_valid() const { return is_valid_; } bool is_valid() const { return is_valid_; }
template <typename T, typename U> bool parse(const char *buf, size_t n, const ContentReceiver &content_callback,
bool parse(const char *buf, size_t n, const T &content_callback, const MultipartContentHeader &header_callback) {
const U &header_callback) {
static const std::regex re_content_disposition( static const std::regex re_content_disposition(
"^Content-Disposition:\\s*form-data;\\s*name=\"(.*?)\"(?:;\\s*filename=" "^Content-Disposition:\\s*form-data;\\s*name=\"(.*?)\"(?:;\\s*filename="