summaryrefslogtreecommitdiff
path: root/methods
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:52:21 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:52:21 +0000
commit8d64c395f7d6612a07997f79eca17d725bf05e2d (patch)
tree5bea48af9317be1ae22be453db7c19c3af7acc41 /methods
parent735a058b1698321093d5ed20ed1ef5f5368038b7 (diff)
Fixed lack of proxy auth
Author: jgg Date: 1998-12-30 02:28:29 GMT Fixed lack of proxy auth
Diffstat (limited to 'methods')
-rw-r--r--methods/http.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/methods/http.cc b/methods/http.cc
index cd0b913c3..dc0c6d891 100644
--- a/methods/http.cc
+++ b/methods/http.cc
@@ -1,6 +1,6 @@
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: http.cc,v 1.17 1998/12/14 08:23:10 jgg Exp $
+// $Id: http.cc,v 1.18 1998/12/30 02:28:29 jgg Exp $
/* ######################################################################
HTTP Aquire Method - This is the HTTP aquire method for APT.
@@ -659,8 +659,9 @@ void HttpMethod::SendReq(FetchItem *Itm,CircleBuf &Out)
}
}
-/* if (ProxyAuth.empty() == false)
- Req += string("Proxy-Authorization: Basic ") + Base64Encode(ProxyAuth) + "\r\n";*/
+ if (Proxy.User.empty() == false || Proxy.Password.empty() == false)
+ Req += string("Proxy-Authorization: Basic ") +
+ Base64Encode(Proxy.User + ":" + Proxy.Password) + "\r\n";
Req += "User-Agent: Debian APT-HTTP/1.2\r\n\r\n";
// cerr << Req << endl;