summaryrefslogtreecommitdiff
path: root/methods
diff options
context:
space:
mode:
authorMichael Vogt <egon@bottom>2007-01-12 20:47:02 +0100
committerMichael Vogt <egon@bottom>2007-01-12 20:47:02 +0100
commitbedb5293c16d105966d9bf48951483af0fbaff2a (patch)
treed87a1f589f47b5a99e7a0f8f893ab07558de4cc2 /methods
parente3d924ac623ec88310bfd36f1e425440f5885aab (diff)
parent020daa7b026cf1496959ccc9d062d95cb5f8ec02 (diff)
* merged from apt--mvo
Diffstat (limited to 'methods')
-rw-r--r--methods/http.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/methods/http.cc b/methods/http.cc
index 1f3b038bc..5aefd4c1f 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"
@@ -713,7 +714,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;