]> sjero.net Git - wget/commitdiff
[svn] Set the CONNECT user-agent in the correct request object.
authorhniksic <devnull@localhost>
Wed, 27 Apr 2005 22:31:12 +0000 (15:31 -0700)
committerhniksic <devnull@localhost>
Wed, 27 Apr 2005 22:31:12 +0000 (15:31 -0700)
src/ChangeLog
src/http.c

index 641b09919cc5dd2bd79b727ca488edbc6f422d6d..bdec74077c99dea38d28f5be5457108a9b07020c 100644 (file)
@@ -1,3 +1,7 @@
+2005-04-28  Hrvoje Niksic  <hniksic@xemacs.org>
+
+       * http.c (gethttp): Correctly set the user agent.
+
 2005-04-27  Hrvoje Niksic  <hniksic@xemacs.org>
 
        * init.c (cmd_spec_useragent): Free the old value of
index ed027a99a920f9eb056589fc46331a4e6e3c9291..cc0868a81d1e47b114874bff05d33203988ea5cd 100644 (file)
@@ -1442,7 +1442,7 @@ gethttp (struct url *u, struct http_stat *hs, int *dt, struct url *proxy)
          struct request *connreq = request_new ();
          request_set_method (connreq, "CONNECT",
                              aprintf ("%s:%d", u->host, u->port));
-         SET_USER_AGENT (req);
+         SET_USER_AGENT (connreq);
          if (proxyauth)
            {
              request_set_header (connreq, "Proxy-Authorization",