From 3c2736bb2a3eb594d8c54f912adbcf7828f88ec2 Mon Sep 17 00:00:00 2001 From: Yuji Hirose Date: Tue, 10 Dec 2019 13:07:49 -0500 Subject: [PATCH] Fixed regex syntax error --- httplib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httplib.h b/httplib.h index de929e4..dfdc8d3 100644 --- a/httplib.h +++ b/httplib.h @@ -2425,7 +2425,7 @@ inline std::pair make_digest_authentication_header( inline int parse_www_authenticate(const httplib::Response &res, std::map &digest_auth) { if (res.has_header("WWW-Authenticate")) { - static auto re = std::regex(R"~((?:(?:,\s*)?(.+?)=(?:"(.*?)"|([^,]*)))))~"); + static auto re = std::regex(R"~((?:(?:,\s*)?(.+?)=(?:"(.*?)"|([^,]*))))~"); auto s = res.get_header_value("WWW-Authenticate"); auto pos = s.find(' '); if (pos != std::string::npos) {