From c77d88077613ccd2028377fcaec7195796a862bb Mon Sep 17 00:00:00 2001 From: hniksic Date: Thu, 14 Jun 2001 13:55:02 -0700 Subject: [PATCH] [svn] Search netrc with the proper host name, not the proxy one. --- src/ChangeLog | 5 +++++ src/http.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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;