diff options
| author | Ruslan Ermilov <ru@FreeBSD.org> | 2002-10-03 10:42:19 +0000 |
|---|---|---|
| committer | Ruslan Ermilov <ru@FreeBSD.org> | 2002-10-03 10:42:19 +0000 |
| commit | 721d559c035d6f945fbdf093de48521dd1145fbb (patch) | |
| tree | 96f75c59c0070ea745bca4c7bc367034dd790777 /lib/libfetch | |
| parent | 73d6e4a5a202789a15b0d26dbbf650685d1a5d45 (diff) | |
Notes
Diffstat (limited to 'lib/libfetch')
| -rw-r--r-- | lib/libfetch/http.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libfetch/http.c b/lib/libfetch/http.c index 99b34ffe87da..3afc5c75b98e 100644 --- a/lib/libfetch/http.c +++ b/lib/libfetch/http.c @@ -985,10 +985,6 @@ _http_request(struct url *URL, const char *op, struct url_stat *us, } } while (h > hdr_end); - /* we have a hit or an error */ - if (conn->err == HTTP_OK || conn->err == HTTP_PARTIAL || HTTP_ERROR(conn->err)) - break; - /* we need to provide authentication */ if (conn->err == HTTP_NEED_AUTH) { e = conn->err; @@ -998,6 +994,10 @@ _http_request(struct url *URL, const char *op, struct url_stat *us, continue; } + /* we have a hit or an error */ + if (conn->err == HTTP_OK || conn->err == HTTP_PARTIAL || HTTP_ERROR(conn->err)) + break; + /* all other cases: we got a redirect */ e = conn->err; need_auth = 0; |
