mirror of
https://github.com/curl/curl.git
synced 2025-03-07 15:27:17 +08:00
url: only acknowledge fresh_reuse for non-followed transfers
... to make sure NTLM auth sticks to the connection it needs, as
verified by 2032.
Follow-up to fa0b922761
Assisted-by: Stefan Eissing
Closes #9905
This commit is contained in:
parent
fb7cf93ba9
commit
b7e4c41aa3
@ -3907,7 +3907,7 @@ static CURLcode create_conn(struct Curl_easy *data,
|
||||
we only acknowledge this option if this is not a re-used connection
|
||||
already (which happens due to follow-location or during an HTTP
|
||||
authentication phase). CONNECT_ONLY transfers also refuse reuse. */
|
||||
if((data->set.reuse_fresh && !data->state.this_is_a_follow) ||
|
||||
if((data->set.reuse_fresh && !data->state.followlocation) ||
|
||||
data->set.connect_only)
|
||||
reuse = FALSE;
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user