From 4146ce826768fe547d83eb1d6a9167db49983bcc Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 25 Jan 2002 08:35:49 +0000 Subject: 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". --- lib/transfer.c | 2 ++ 1 file changed, 2 insertions(+) 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 && -- cgit v1.2.3