1
0
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:
hniksic 2001-06-14 13:55:02 -07:00
parent 8f6b4f5bbb
commit c77d880776
2 changed files with 6 additions and 1 deletions

View File

@ -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> 2001-06-14 Hrvoje Niksic <hniksic@arsdigita.com>
* sysdep.h (MAP_FAILED): Provide MAP_FAILED for systems that don't * sysdep.h (MAP_FAILED): Provide MAP_FAILED for systems that don't

View File

@ -718,7 +718,7 @@ gethttp (struct urlinfo *u, struct http_stat *hs, int *dt)
/* Construct the authentication, if userid is present. */ /* Construct the authentication, if userid is present. */
user = ou->user; user = ou->user;
passwd = ou->passwd; 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; user = user ? user : opt.http_user;
passwd = passwd ? passwd : opt.http_passwd; passwd = passwd ? passwd : opt.http_passwd;