summaryrefslogtreecommitdiff
path: root/methods/http.cc
diff options
context:
space:
mode:
authorMichael Vogt <egon@bottom>2006-09-12 13:52:22 +0200
committerMichael Vogt <egon@bottom>2006-09-12 13:52:22 +0200
commit0dbbd79dbce8117521f36ecb0d6e8025152023f0 (patch)
tree2288de2edcb4ca124d6e34db69ca16e51037bf78 /methods/http.cc
parentd4a7a408559193d80843cef66231216fb58770a4 (diff)
parent071812e3bfe5446f58c8ac4cd5731bd601eac29a (diff)
* merged with mainline
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 cb63ada49..1f3b038bc 100644
--- a/methods/http.cc
+++ b/methods/http.cc
@@ -656,7 +656,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