mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2025-05-10 01:33:53 +00:00
update digest header username to use username parameter instead of "hello" test value
This commit is contained in:
parent
85637844c9
commit
5bb4c12c6b
@ -2733,7 +2733,7 @@ inline std::pair<std::string, std::string> make_digest_authentication_header(
|
||||
":" + qop + ":" + H(A2));
|
||||
}
|
||||
|
||||
auto field = "Digest username=\"hello\", realm=\"" + auth.at("realm") +
|
||||
auto field = "Digest username=\"" + username + "\", realm=\"" + auth.at("realm") +
|
||||
"\", nonce=\"" + auth.at("nonce") + "\", uri=\"" + req.path +
|
||||
"\", algorithm=" + algo + ", qop=" + qop + ", nc=\"" + nc +
|
||||
"\", cnonce=\"" + cnonce + "\", response=\"" + response + "\"";
|
||||
|
Loading…
x
Reference in New Issue
Block a user