Skip to content

Commit

Permalink
Fix a couple of embarrassing mistakes in the previous commit.
Browse files Browse the repository at this point in the history
Submitted by:	Dimitry Andric <[email protected]>
  • Loading branch information
dag-erling committed Jul 28, 2010
1 parent fe21af2 commit 965c4a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/libfetch/http.c
Original file line number Diff line number Diff line change
Expand Up @@ -1786,13 +1786,13 @@ http_request(struct url *URL, const char *op, struct url_stat *us,
case hdr_www_authenticate:
if (conn->err != HTTP_NEED_AUTH)
break;
if (http_parse_authenticate(p, &server_challenges))
if (http_parse_authenticate(p, &server_challenges) == 0)
++n;
break;
case hdr_proxy_authenticate:
if (conn->err != HTTP_NEED_PROXY_AUTH)
break;
if (http_parse_authenticate(p, &proxy_challenges) == 0);
if (http_parse_authenticate(p, &proxy_challenges) == 0)
++n;
break;
case hdr_end:
Expand Down

0 comments on commit 965c4a4

Please sign in to comment.