aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-03-22 19:14:35 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-03-22 19:14:35 +0000
commitaa1c3bb46dbf50e1c70679a5b804fa08b9d1f795 (patch)
tree0330bd157ab207f2edf8a1c8808934679202bdb8 /lib
parent95f0714ff87f54303f996bd577ddf6aedf16a133 (diff)
reset the follow location counter in Curl_perform() so that we can follow
new locations on the same connection that was previously followed on
Diffstat (limited to 'lib')
-rw-r--r--lib/transfer.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/transfer.c b/lib/transfer.c
index 59b79960f..ce4d5a678 100644
--- a/lib/transfer.c
+++ b/lib/transfer.c
@@ -737,6 +737,9 @@ CURLcode Curl_perform(CURL *curl)
struct connectdata *conn=NULL;
bool port=TRUE; /* allow data->use_port to set port to use */
+ data->followlocation=0; /* reset the location-follow counter */
+ data->bits.this_is_a_follow = FALSE; /* reset this */
+
Curl_pgrsStartNow(data);
do {