Skip to content

Commit 3c2736b

Browse files
committed
Fixed regex syntax error
1 parent fd4e1b4 commit 3c2736b

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
@@ -2425,7 +2425,7 @@ inline std::pair<std::string, std::string> make_digest_authentication_header(
24252425
inline int parse_www_authenticate(const httplib::Response &res,
24262426
std::map<std::string, std::string> &digest_auth) {
24272427
if (res.has_header("WWW-Authenticate")) {
2428-
static auto re = std::regex(R"~((?:(?:,\s*)?(.+?)=(?:"(.*?)"|([^,]*)))))~");
2428+
static auto re = std::regex(R"~((?:(?:,\s*)?(.+?)=(?:"(.*?)"|([^,]*))))~");
24292429
auto s = res.get_header_value("WWW-Authenticate");
24302430
auto pos = s.find(' ');
24312431
if (pos != std::string::npos) {

0 commit comments

Comments
 (0)