mirror of
https://github.com/mirror/wget.git
synced 2026-08-31 03:37:54 +08:00
[svn] Search netrc with the proper host name, not the proxy one.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user