From 9b25046c560a1137bd0d6ed1737eb05bd6d1dd16 Mon Sep 17 00:00:00 2001 From: Jacob Vosmaer <contact@jacobvosmaer.nl> Date: Wed, 7 Oct 2015 14:27:15 +0200 Subject: [PATCH] Use our own header instead of User-Agent --- githandler.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/githandler.go b/githandler.go index 000b72ffb0a..3af8e3d2687 100644 --- a/githandler.go +++ b/githandler.go @@ -153,9 +153,9 @@ func (h *gitHandler) doAuthRequest(r *http.Request) (result *http.Response, err // This allows the Host header received by the backend to be consistent with other // requests not going through gitlab-git-http-server. authReq.Host = r.Host - // Set custom user agent for the request. This can be used in some + // Set a custom header for the request. This can be used in some // configurations (Passenger) to solve auth request routing problems. - authReq.Header.Set("User-Agent", "gitlab-git-http-server") + authReq.Header.Set("GitLab-Git-HTTP-Server", Version) return h.httpClient.Do(authReq) } -- 2.30.9