]> granicus.if.org Git - curl/commitdiff
bug report #508235 identified a non-working Location: following, and this
authorDaniel Stenberg <daniel@haxx.se>
Fri, 25 Jan 2002 08:35:49 +0000 (08:35 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 25 Jan 2002 08:35:49 +0000 (08:35 +0000)
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

index f08e88c8aa9f53ae186771e3d9bc4dc4ccc10628..448801b0f87cccaf9797385d6ae5c1be3c68461f 100644 (file)
@@ -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 &&