summaryrefslogtreecommitdiff
path: root/methods/http.cc
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2006-09-06 19:25:51 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2006-09-06 19:25:51 +0200
commit59e4486eb632f4e56eb336fe5a7dc694059e741c (patch)
treea0421cdb156a15fa7e5fc1bbc1e144b12e36c40c /methods/http.cc
parent8e72d2085d7c84466d25178c2eb256ad3e972dde (diff)
parent9d2938d4e6e86c6afdb9606f76f4ae9ce0ac4ee5 (diff)
* merged from the auto-install branch
Diffstat (limited to 'methods/http.cc')
-rw-r--r--methods/http.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/methods/http.cc b/methods/http.cc
index 09dab8188..1833f41ef 100644
--- a/methods/http.cc
+++ b/methods/http.cc
@@ -657,7 +657,7 @@ void HttpMethod::SendReq(FetchItem *Itm,CircleBuf &Out)
will glitch HTTP/1.0 proxies because they do not filter it out and
pass it on, HTTP/1.1 says the connection should default to keep alive
and we expect the proxy to do this */
- if (Proxy.empty() == true)
+ if (Proxy.empty() == true || Proxy.Host.empty())
sprintf(Buf,"GET %s HTTP/1.1\r\nHost: %s\r\nConnection: keep-alive\r\n",
QuoteString(Uri.Path,"~").c_str(),ProperHost.c_str());
else