X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=http.c;h=0cb42a85d146c406f8268be423aabeb9e0e90dd0;hb=dbd0f7d3221fbf8e9943a114c11e5b5e5fc0c201;hp=9604e3326bbc902aed987d2816fdf25450203633;hpb=c827a84c694f95a9c2e179192d34c33eccdbb10a;p=git.git diff --git a/http.c b/http.c index 9604e332..0cb42a85 100644 --- a/http.c +++ b/http.c @@ -195,6 +195,8 @@ static CURL* get_curl_handle(void) if (getenv("GIT_CURL_VERBOSE")) curl_easy_setopt(result, CURLOPT_VERBOSE, 1); + curl_easy_setopt(result, CURLOPT_USERAGENT, GIT_USER_AGENT); + return result; }