diff options
author | ru <ru@FreeBSD.org> | 2002-10-03 10:42:19 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2002-10-03 10:42:19 +0000 |
commit | 48afd8f90439873197b676d9b967ca32fd3791b0 (patch) | |
tree | 96f75c59c0070ea745bca4c7bc367034dd790777 /lib | |
parent | 915a8cf3429821e306abd2e4c03d5289bc1bf9cf (diff) | |
download | FreeBSD-src-48afd8f90439873197b676d9b967ca32fd3791b0.zip FreeBSD-src-48afd8f90439873197b676d9b967ca32fd3791b0.tar.gz |
HTTP authentication got broken in rev. 1.49.
Diffstat (limited to 'lib')
-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 99b34ff..3afc5c7 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; |