summaryrefslogtreecommitdiff
path: root/methods/https.cc
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2009-12-04 10:22:56 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2009-12-04 10:22:56 +0100
commit01fc89305c7b5fc52d719c6898a9fdf03abf3ce6 (patch)
tree456e014f918bcbef2c0ffa56c2a4a5c79773059e /methods/https.cc
parentf1c081b6ad0c5925e9668fd159f1ac6d8ab672bc (diff)
* apt-pkg/contrib/netrc.cc:
- check for hostname and then host+path - better debug output * methods/https.cc: - fix bug in netrc integration
Diffstat (limited to 'methods/https.cc')
-rw-r--r--methods/https.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/methods/https.cc b/methods/https.cc
index 075d655b7..585e13848 100644
--- a/methods/https.cc
+++ b/methods/https.cc
@@ -130,7 +130,7 @@ bool HttpsMethod::Fetch(FetchItem *Itm)
maybe_add_auth (Uri, _config->FindFile("Dir::Etc::netrc"));
// callbacks
- curl_easy_setopt(curl, CURLOPT_URL, Itm->Uri.c_str());
+ curl_easy_setopt(curl, CURLOPT_URL, static_cast<string>(Uri).c_str());
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, write_data);
curl_easy_setopt(curl, CURLOPT_WRITEDATA, this);
curl_easy_setopt(curl, CURLOPT_PROGRESSFUNCTION, progress_callback);