mirror of
https://github.com/curl/curl.git
synced 2025-01-30 14:22:33 +08:00
corrected the reuse_fresh condition
This commit is contained in:
parent
89829093ca
commit
7c85be9435
@ -2875,7 +2875,7 @@ static CURLcode CreateConnection(struct SessionHandle *data,
|
||||
we only acknowledge this option if this is not a re-used connection
|
||||
already (which happens due to follow-location or during a HTTP
|
||||
authentication phase). */
|
||||
if(data->set.reuse_fresh && !conn->bits.reuse)
|
||||
if(data->set.reuse_fresh && !data->state.this_is_a_follow)
|
||||
reuse = FALSE;
|
||||
else
|
||||
reuse = ConnectionExists(data, conn, &conn_temp);
|
||||
|
Loading…
Reference in New Issue
Block a user