1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

[svn] Set the CONNECT user-agent in the correct request object.

This commit is contained in:
hniksic 2005-04-27 15:31:12 -07:00
parent 993ba1ca75
commit c4a5b4dfc7
2 changed files with 5 additions and 1 deletions

View 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

View 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",