]> git.saurik.com Git - apt.git/blobdiff - methods/http.cc
* apt-pkg/acquire-item.cc:
[apt.git] / methods / http.cc
index 01ad146557ff09905346c0c278e9f990e8a1839d..ecfb80bd2e3a451d3264b061e4c1fdf86f32e775 100644 (file)
@@ -43,6 +43,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: Ubuntu APT-HTTP/1.3 ("VERSION")\r\n\r\n";
    
    if (Debug == true)
       cerr << Req << endl;