]> sjero.net Git - wget/commitdiff
[svn] Search netrc with the proper host name, not the proxy one.
authorhniksic <devnull@localhost>
Thu, 14 Jun 2001 20:55:02 +0000 (13:55 -0700)
committerhniksic <devnull@localhost>
Thu, 14 Jun 2001 20:55:02 +0000 (13:55 -0700)
src/ChangeLog
src/http.c

index cf6d5275721d7262ee0fc38e6604220b90c98695..2153783515303fbdd68fb8859e47991c414c6d1b 100644 (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>
 
        * sysdep.h (MAP_FAILED): Provide MAP_FAILED for systems that don't
index 2ea8a79d452214974d3962036a15ac2a3ad81397..10451f9b35b0c05ad826daf49e2f7d0315813b4f 100644 (file)
@@ -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;