diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2006-12-19 11:44:52 +0100 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2006-12-19 11:44:52 +0100 |
commit | 59b46c414d5a5cebd26bdafac6b08fa4d1ba0963 (patch) | |
tree | be83cc6906fc7a819142c833086b7c026838f3e8 /methods | |
parent | 4172c78468a04078c97146dbc2e2979e63906f5b (diff) | |
download | apt-59b46c414d5a5cebd26bdafac6b08fa4d1ba0963.tar.gz |
* apt-pkg/deb/debrecords.cc:
- return the correct SHA1Hash()
* methods/http.cc:
- send VERSION of apt in the User-Agent string
Diffstat (limited to 'methods')
-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 c6623c46f..06b91686c 100644 --- a/methods/http.cc +++ b/methods/http.cc @@ -44,6 +44,7 @@ // Internet stuff #include <netdb.h> +#include "config.h" #include "connect.h" #include "rfc2553emu.h" #include "http.h" @@ -714,7 +715,7 @@ 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\r\n\r\n"; + Req += "User-Agent: Debian APT-HTTP/1.3 ("VERSION")\r\n\r\n"; if (Debug == true) cerr << Req << endl; |