mirror of
https://github.com/mirror/wget.git
synced 2025-01-06 02:10:28 +08:00
[svn] Set the CONNECT user-agent in the correct request object.
This commit is contained in:
parent
993ba1ca75
commit
c4a5b4dfc7
@ -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
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user