diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2009-12-14 09:22:29 +0100 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2009-12-14 09:22:29 +0100 |
commit | 4407a02f4ead0c8c7906ba2fa96021890237f7d9 (patch) | |
tree | 6fa68d5510b537a28cdb677298a8f4e8d1fb42a6 /methods/http.cc | |
parent | d4d9f5399244f5c7e698cc4860d1d9ab8f63992f (diff) | |
parent | 5d70f74c114450f001d415eea101610eedaee05b (diff) |
merged patches from david (many thanks)
Diffstat (limited to 'methods/http.cc')
-rw-r--r-- | methods/http.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/methods/http.cc b/methods/http.cc index 3b210f6b6..2dae87a02 100644 --- a/methods/http.cc +++ b/methods/http.cc @@ -731,7 +731,8 @@ void HttpMethod::SendReq(FetchItem *Itm,CircleBuf &Out) Req += string("Authorization: Basic ") + Base64Encode(Uri.User + ":" + Uri.Password) + "\r\n"; } - Req += "User-Agent: Debian APT-HTTP/1.3 ("VERSION")\r\n\r\n"; + Req += "User-Agent: " + _config->Find("Acquire::http::User-Agent", + "Debian APT-HTTP/1.3 ("VERSION")") + "\r\n\r\n"; if (Debug == true) cerr << Req << endl; |