aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-01-25 08:35:49 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-01-25 08:35:49 +0000
commit4146ce826768fe547d83eb1d6a9167db49983bcc (patch)
tree747d89639ec4b4277a37cabd1709ec1be0be691c /lib
parent170bd6dafca2a92746392c9dd7a98530e2b28024 (diff)
bug report #508235 identified a non-working Location: following, and this
little fix seems to correct it. another case where we just returned and didn't shut off the reading. This bug is introduced in 7.9.3 due to the new internal "order".
Diffstat (limited to 'lib')
-rw-r--r--lib/transfer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/transfer.c b/lib/transfer.c
index f08e88c8a..448801b0f 100644
--- a/lib/transfer.c
+++ b/lib/transfer.c
@@ -610,6 +610,8 @@ CURLcode Curl_readwrite(struct connectdata *conn,
if (conn->newurl) {
/* abort after the headers if "follow Location" is set */
infof (data, "Follow to new URL: %s\n", conn->newurl);
+ k->keepon &= ~KEEP_READ;
+ FD_ZERO(&k->rkeepfd);
return CURLE_OK;
}
else if (conn->resume_from &&