diff options
author | Julian Andres Klode <jak@debian.org> | 2009-10-12 16:24:34 +0200 |
---|---|---|
committer | Julian Andres Klode <jak@debian.org> | 2009-10-12 16:24:34 +0200 |
commit | f465a80f6e0e0cc3edae1870881135ced824c9e3 (patch) | |
tree | 9256050e0a56c6b0bf215a7eb90d2ac112b3bb1a /methods | |
parent | b1a6d48bb4a5644ad9b76718f66d8aa7e00af902 (diff) |
methods/https.cc: Add support for authentication using netrc (Closes: #518473),
patch by Jussi Hakala <jussi.hakala@hut.fi>.
Diffstat (limited to 'methods')
-rw-r--r-- | methods/https.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/methods/https.cc b/methods/https.cc index 37d93e308..79e6fea3f 100644 --- a/methods/https.cc +++ b/methods/https.cc @@ -135,6 +135,7 @@ bool HttpsMethod::Fetch(FetchItem *Itm) curl_easy_setopt(curl, CURLOPT_NOPROGRESS, false); curl_easy_setopt(curl, CURLOPT_FAILONERROR, true); curl_easy_setopt(curl, CURLOPT_FILETIME, true); + curl_easy_setopt(curl, CURLOPT_NETRC, CURL_NETRC_OPTIONAL); // SSL parameters are set by default to the common (non mirror-specific) value // if available (or a default one) and gets overload by mirror-specific ones. |