diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2006-09-06 19:25:51 +0200 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2006-09-06 19:25:51 +0200 |
commit | 59e4486eb632f4e56eb336fe5a7dc694059e741c (patch) | |
tree | a0421cdb156a15fa7e5fc1bbc1e144b12e36c40c /methods/http.cc | |
parent | 8e72d2085d7c84466d25178c2eb256ad3e972dde (diff) | |
parent | 9d2938d4e6e86c6afdb9606f76f4ae9ce0ac4ee5 (diff) |
* merged from the auto-install branch
Diffstat (limited to 'methods/http.cc')
-rw-r--r-- | methods/http.cc | 2 |
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 |