summaryrefslogtreecommitdiff
path: root/methods/http.cc
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2009-10-16 15:42:05 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2009-10-16 15:42:05 +0200
commit1de1f70383ea2d44147ccaceff280fd70faf4c81 (patch)
tree198f17cfbacda989495923a6f34aed64313a86da /methods/http.cc
parent592b78001c381f9cca6f20d8d1d47696bb98c0d1 (diff)
downloadapt-1de1f70383ea2d44147ccaceff280fd70faf4c81.tar.gz
add maybe_add_auth for ftp as well
Diffstat (limited to 'methods/http.cc')
-rw-r--r--methods/http.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/methods/http.cc b/methods/http.cc
index 6bfe80baf..50478b44c 100644
--- a/methods/http.cc
+++ b/methods/http.cc
@@ -725,9 +725,9 @@ void HttpMethod::SendReq(FetchItem *Itm,CircleBuf &Out)
Req += string("Proxy-Authorization: Basic ") +
Base64Encode(Proxy.User + ":" + Proxy.Password) + "\r\n";
+ maybe_add_auth (Uri, _config->FindFile("Dir::Etc::netrc"));
if (Uri.User.empty() == false || Uri.Password.empty() == false)
{
- maybe_add_auth (Uri, _config->FindFile("Dir::Etc::netrc"));
Req += string("Authorization: Basic ") +
Base64Encode(Uri.User + ":" + Uri.Password) + "\r\n";
}