mirror of
https://github.com/curl/curl.git
synced 2026-08-26 09:23:31 +03:00
http: move header storage to Curl_easy from connectdata
Since the connection can be used by many independent requests (using HTTP/2 or HTTP/3), things like user-agent and other transfer-specific data MUST NOT be kept connection oriented as it could lead to requests getting the wrong string for their requests. This struct data was lingering like this due to old HTTP1 legacy thinking where it didn't mattered.. Fixes #5566 Closes #5567
This commit is contained in:
parent
350a99b21f
commit
e15e51384a
10 changed files with 137 additions and 130 deletions
|
|
@ -98,7 +98,7 @@ CURLcode Curl_output_digest(struct connectdata *conn,
|
|||
return CURLE_NOT_BUILT_IN;
|
||||
#else
|
||||
digest = &data->state.proxydigest;
|
||||
allocuserpwd = &conn->allocptr.proxyuserpwd;
|
||||
allocuserpwd = &data->state.aptr.proxyuserpwd;
|
||||
userp = conn->http_proxy.user;
|
||||
passwdp = conn->http_proxy.passwd;
|
||||
authp = &data->state.authproxy;
|
||||
|
|
@ -106,7 +106,7 @@ CURLcode Curl_output_digest(struct connectdata *conn,
|
|||
}
|
||||
else {
|
||||
digest = &data->state.digest;
|
||||
allocuserpwd = &conn->allocptr.userpwd;
|
||||
allocuserpwd = &data->state.aptr.userpwd;
|
||||
userp = conn->user;
|
||||
passwdp = conn->passwd;
|
||||
authp = &data->state.authhost;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue