Correctly set user-agent in CONNECT

Hrvoje Niksic <[email protected]>
Newsgroups gmane.comp.web.wget.patches
Message-ID <[email protected]>
Just a braino.

2005-04-28  Hrvoje Niksic  <[email protected]>

	* http.c (gethttp): Correctly set the user agent.

Index: src/http.c
===================================================================
RCS file: /pack/anoncvs/wget/src/http.c,v
retrieving revision 1.170
diff -u -r1.170 http.c
--- src/http.c	2005/04/27 21:30:21	1.170
+++ src/http.c	2005/04/27 22:29:55
@@ -1442,7 +1442,7 @@
 	  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",
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.