mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
HTTP authentication got broken in rev. 1.49.
This commit is contained in:
parent
73d6e4a5a2
commit
721d559c03
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=104404
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue