summaryrefslogtreecommitdiff
path: root/methods
diff options
context:
space:
mode:
Diffstat (limited to 'methods')
-rw-r--r--methods/https.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/methods/https.cc b/methods/https.cc
index 18ecfd3d2..4daa04e32 100644
--- a/methods/https.cc
+++ b/methods/https.cc
@@ -200,7 +200,7 @@ bool HttpsMethod::Fetch(FetchItem *Itm)
curl_easy_setopt(curl, CURLOPT_USERAGENT,
_config->Find("Acquire::https::User-Agent",
_config->Find("Acquire::http::User-Agent",
- "Debian APT-CURL/1.0 ("VERSION")")));
+ "Debian APT-CURL/1.0 ("VERSION")")).c_str());
// set timeout
int timeout = _config->FindI("Acquire::https::Timeout",