mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2026-10-19 11:19:36 +00:00
Say why the Digest uri is in origin form
Through a plain-HTTP proxy the request line carries the absolute form, while the Digest uri stays in origin form, as curl sends it. The comment cited RFC 7616 3.4, which asks for the effective request URI.
This commit is contained in:
1 parent
a09e00b03d
commit
26febe0769
1 file changed
+2
-1
@@ -10888,7 +10888,8 @@ inline bool process_client_socket_ssl(
|
||||
return callback(strm);
|
||||
}
|
||||
|
||||
// `uri` is req's request-target in origin form (RFC 7616 3.4).
|
||||
// `uri` is req's request-target in origin form, as curl sends it, also when
|
||||
// the request line carries the absolute form for a proxy.
|
||||
inline std::pair<std::string, std::string> make_digest_authentication_header(
|
||||
const Request &req, const std::string &uri,
|
||||
const std::map<std::string, std::string> &auth, size_t cnonce_count,
|
||||
|
||||
Reference in new issue
Block a user