summaryrefslogtreecommitdiff
path: root/methods/http.cc
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:55:55 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:55:55 +0000
commitdd1fd92b04c5265e134a50bd9262b8f732e90f9c (patch)
treeddcbe450582902f62ad9a98c5a75271f4f94551a /methods/http.cc
parent1db7d3928e37662a6f29fe1cff8dcec38ad93319 (diff)
Fixed error reporting for empty host strings and invali...
Author: jgg Date: 2000-05-12 05:04:57 GMT Fixed error reporting for empty host strings and invalid proxy settings
Diffstat (limited to 'methods/http.cc')
-rw-r--r--methods/http.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/methods/http.cc b/methods/http.cc
index ad8fe373a..78e8135d4 100644
--- a/methods/http.cc
+++ b/methods/http.cc
@@ -1,6 +1,6 @@
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: http.cc,v 1.44 2000/01/30 08:16:43 jgg Exp $
+// $Id: http.cc,v 1.45 2000/05/12 05:04:57 jgg Exp $
/* ######################################################################
HTTP Aquire Method - This is the HTTP aquire method for APT.
@@ -309,11 +309,11 @@ bool ServerState::Open()
break;
}
}
-
+
// Determine what host and port to use based on the proxy settings
int Port = 0;
string Host;
- if (Proxy.empty() == true)
+ if (Proxy.empty() == true || Proxy.Host.empty() == true)
{
if (ServerName.Port != 0)
Port = ServerName.Port;