From c4a5b4dfc72c7f11f9afb30bf202ca8a3669a58f Mon Sep 17 00:00:00 2001 From: hniksic Date: Wed, 27 Apr 2005 15:31:12 -0700 Subject: [PATCH] [svn] Set the CONNECT user-agent in the correct request object. --- src/ChangeLog | 4 ++++ src/http.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 641b0991..bdec7407 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2005-04-28 Hrvoje Niksic + + * http.c (gethttp): Correctly set the user agent. + 2005-04-27 Hrvoje Niksic * init.c (cmd_spec_useragent): Free the old value of diff --git a/src/http.c b/src/http.c index ed027a99..cc0868a8 100644 --- a/src/http.c +++ b/src/http.c @@ -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",