1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -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
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);