diff --git a/src/ChangeLog b/src/ChangeLog index cf6d5275..21537835 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2001-06-14 Hrvoje Niksic + + * http.c (gethttp): Search `.netrc' with real host, not the proxy + one. + 2001-06-14 Hrvoje Niksic * sysdep.h (MAP_FAILED): Provide MAP_FAILED for systems that don't diff --git a/src/http.c b/src/http.c index 2ea8a79d..10451f9b 100644 --- a/src/http.c +++ b/src/http.c @@ -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;