Commit 4146ce82 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

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".
parent 170bd6da
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -610,6 +610,8 @@ CURLcode Curl_readwrite(struct connectdata *conn,
            if (conn->newurl) {
            if (conn->newurl) {
              /* abort after the headers if "follow Location" is set */
              /* abort after the headers if "follow Location" is set */
              infof (data, "Follow to new URL: %s\n", conn->newurl);
              infof (data, "Follow to new URL: %s\n", conn->newurl);
                k->keepon &= ~KEEP_READ;
                FD_ZERO(&k->rkeepfd);
              return CURLE_OK;
              return CURLE_OK;
            }
            }
            else if (conn->resume_from &&
            else if (conn->resume_from &&