mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2026-11-29 21:18:29 +00:00
Match Digest challenge parameter names case-insensitively (#2702)
This commit is contained in:
1 parent
197d1247bd
commit
58cd21449c
2 files changed
+41
-1
No files matched your search
@@ -11282,7 +11282,8 @@ inline bool parse_www_authenticate(const Response &res,
|
||||
if (unquoted.size() != val.size()) {
|
||||
unquoted = unescape_quoted_pairs(unquoted);
|
||||
}
|
||||
auth[std::move(key_part)] = std::move(unquoted);
|
||||
// auth-param names are case-insensitive (RFC 9110 Section 11.2)
|
||||
auth[case_ignore::to_lower(key_part)] = std::move(unquoted);
|
||||
});
|
||||
|
||||
// RFC 7616 Section 3.3 requires realm and nonce on every Digest challenge;
|
||||
|
||||
Reference in new issue
Block a user