From 20fc9bc5e4fdd4b1f7fd98fbd2e91879f945d7e1 Mon Sep 17 00:00:00 2001 From: Nick Hengeveld Date: Tue, 4 Apr 2006 10:11:29 -0700 Subject: Set HTTP user agent to git/GIT_VERSION Useful for diagnostics/troubleshooting to know which client versions are hitting your server. Signed-off-by: Nick Hengeveld Signed-off-by: Junio C Hamano --- http.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'http.c') diff --git a/http.c b/http.c index 9604e3326..0cb42a85d 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; } -- cgit v1.2.1