1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

corrected the reuse_fresh condition

This commit is contained in:
Daniel Stenberg 2004-03-02 14:00:44 +00:00
parent 89829093ca
commit 7c85be9435

View File

@ -2875,7 +2875,7 @@ static CURLcode CreateConnection(struct SessionHandle *data,
we only acknowledge this option if this is not a re-used connection we only acknowledge this option if this is not a re-used connection
already (which happens due to follow-location or during a HTTP already (which happens due to follow-location or during a HTTP
authentication phase). */ authentication phase). */
if(data->set.reuse_fresh && !conn->bits.reuse) if(data->set.reuse_fresh && !data->state.this_is_a_follow)
reuse = FALSE; reuse = FALSE;
else else
reuse = ConnectionExists(data, conn, &conn_temp); reuse = ConnectionExists(data, conn, &conn_temp);