diff options
author | Nick Hengeveld <nickh@reactrix.com> | 2006-04-04 10:11:29 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-04-04 14:42:47 -0700 |
commit | 20fc9bc5e4fdd4b1f7fd98fbd2e91879f945d7e1 (patch) | |
tree | 90c1218fe99c4bfd5485492f5f3f9d33cfeabd49 /http.c | |
parent | 7fa8ddd6e283f120938e379c980624798561c32d (diff) | |
download | git-20fc9bc5e4fdd4b1f7fd98fbd2e91879f945d7e1.tar.gz |
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 <nickh@reactrix.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'http.c')
-rw-r--r-- | http.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; } |