]> git.saurik.com Git - apt.git/blobdiff - methods/http.cc
cmdline/apt-cdrom.cc: add help, fix duplicated option
[apt.git] / methods / http.cc
index 3b210f6b612153fd5a433e784956b28c22ce6677..2dae87a02be878cb3da87c0c18336a8633b2c743 100644 (file)
@@ -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;