From: Daniel Stenberg Date: Fri, 25 Jan 2002 08:35:49 +0000 (+0000) Subject: bug report #508235 identified a non-working Location: following, and this X-Git-Tag: curl-7_9_4~34 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4146ce826768fe547d83eb1d6a9167db49983bcc;p=thirdparty%2Fcurl.git 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". --- diff --git a/lib/transfer.c b/lib/transfer.c index f08e88c8aa..448801b0f8 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 &&