mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
Fix regression in HTTP authentication
* src/http.c (initialize_request): Fix wrong params to search_netrc()
Regression introduced in commit 29850e77
Reported-by: Axel Reinhold <axel@freakout.de>
This commit is contained in:
parent
218d81f6e5
commit
4e37fb6191
@ -1872,7 +1872,7 @@ initialize_request (struct url *u, struct http_stat *hs, int *dt, struct url *pr
|
|||||||
/* Find the username and password for authentication. */
|
/* Find the username and password for authentication. */
|
||||||
*user = u->user;
|
*user = u->user;
|
||||||
*passwd = u->passwd;
|
*passwd = u->passwd;
|
||||||
search_netrc (u->host, (const char **)&user, (const char **)&passwd, 0);
|
search_netrc (u->host, (const char **)user, (const char **)passwd, 0);
|
||||||
*user = *user ? *user : (opt.http_user ? opt.http_user : opt.user);
|
*user = *user ? *user : (opt.http_user ? opt.http_user : opt.user);
|
||||||
*passwd = *passwd ? *passwd : (opt.http_passwd ? opt.http_passwd : opt.passwd);
|
*passwd = *passwd ? *passwd : (opt.http_passwd ? opt.http_passwd : opt.passwd);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user