mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
[svn] Search netrc with the proper host name, not the proxy one.
This commit is contained in:
parent
8f6b4f5bbb
commit
c77d880776
@ -1,3 +1,8 @@
|
||||
2001-06-14 Hrvoje Niksic <hniksic@arsdigita.com>
|
||||
|
||||
* http.c (gethttp): Search `.netrc' with real host, not the proxy
|
||||
one.
|
||||
|
||||
2001-06-14 Hrvoje Niksic <hniksic@arsdigita.com>
|
||||
|
||||
* sysdep.h (MAP_FAILED): Provide MAP_FAILED for systems that don't
|
||||
|
@ -718,7 +718,7 @@ gethttp (struct urlinfo *u, struct http_stat *hs, int *dt)
|
||||
/* Construct the authentication, if userid is present. */
|
||||
user = ou->user;
|
||||
passwd = ou->passwd;
|
||||
search_netrc (u->host, (const char **)&user, (const char **)&passwd, 0);
|
||||
search_netrc (ou->host, (const char **)&user, (const char **)&passwd, 0);
|
||||
user = user ? user : opt.http_user;
|
||||
passwd = passwd ? passwd : opt.http_passwd;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user