summaryrefslogtreecommitdiff
path: root/methods/https.cc
diff options
context:
space:
mode:
authorbubulle@debian.org <>2007-07-15 08:17:44 +0200
committerbubulle@debian.org <>2007-07-15 08:17:44 +0200
commit5ffd03998b01c174298ddb3f2f914f59bdee7481 (patch)
tree053148d6cef4f862101f30de584cae0bb5048757 /methods/https.cc
parentd59821362ed1032920a72d3795176cccadaea6b0 (diff)
parent82d0afc286514bbe8904c3436bb6580aeaa6ad66 (diff)
Sync with Michael
Diffstat (limited to 'methods/https.cc')
-rw-r--r--methods/https.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/methods/https.cc b/methods/https.cc
index b758e4ab3..d48ac97fb 100644
--- a/methods/https.cc
+++ b/methods/https.cc
@@ -3,7 +3,7 @@
// $Id: http.cc,v 1.59 2004/05/08 19:42:35 mdz Exp $
/* ######################################################################
- HTTPS Aquire Method - This is the HTTPS aquire method for APT.
+ HTTPS Acquire Method - This is the HTTPS aquire method for APT.
It uses libcurl
@@ -50,13 +50,13 @@ HttpsMethod::progress_callback(void *clientp, double dltotal, double dlnow,
{
HttpsMethod *me = (HttpsMethod *)clientp;
if(dltotal > 0 && me->Res.Size == 0) {
- me->Res.Size = dltotal;
+ me->Res.Size = (unsigned long)dltotal;
me->URIStart(me->Res);
}
return 0;
}
-bool HttpsMethod::SetupProxy()
+void HttpsMethod::SetupProxy()
{
URI ServerName = Queue->Uri;
@@ -84,7 +84,6 @@ bool HttpsMethod::SetupProxy()
}
// Determine what host and port to use based on the proxy settings
- int Port = 0;
string Host;
if (Proxy.empty() == true || Proxy.Host.empty() == true)
{