diff options
| author | Ruslan Ermilov <ru@FreeBSD.org> | 2002-10-04 08:11:59 +0000 |
|---|---|---|
| committer | Ruslan Ermilov <ru@FreeBSD.org> | 2002-10-04 08:11:59 +0000 |
| commit | 563546642e80eeeb8bd9c07dc24bb136c7bd5e85 (patch) | |
| tree | 7a1a41241d1ef6aa5d786c529bddf32d6c2b05ed /lib/libfetch | |
| parent | 2b17a020b88dbf0793573e184854ee6b4ebea791 (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 04b7964612fe..3c9e61b592ce 100644 --- a/lib/libfetch/http.c +++ b/lib/libfetch/http.c @@ -946,10 +946,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 (code == HTTP_OK || code == HTTP_PARTIAL || HTTP_ERROR(code)) - break; - /* we need to provide authentication */ if (code == HTTP_NEED_AUTH) { need_auth = 1; @@ -957,6 +953,10 @@ _http_request(struct url *URL, const char *op, struct url_stat *us, fd = -1; continue; } + + /* we have a hit or an error */ + if (code == HTTP_OK || code == HTTP_PARTIAL || HTTP_ERROR(code)) + break; /* all other cases: we got a redirect */ need_auth = 0; |
