]> git.saurik.com Git - apt.git/blobdiff - methods/http.cc
* Merged from the mvo branch
[apt.git] / methods / http.cc
index e2057f436b25b032f1e14d1de2dec3197489712c..47e7c5f50c54988e2903994e9a4776e88cbc7b0a 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: Ubuntu APT-HTTP/1.3 ("VERSION")\r\n\r\n";
+   Req += "User-Agent: " + _config->Find("Acquire::http::User-Agent",
+               "Ubuntu APT-HTTP/1.3 ("VERSION")") + "\r\n\r\n";
    
    if (Debug == true)
       cerr << Req << endl;