Commit 9b25046c authored by Jacob Vosmaer's avatar Jacob Vosmaer

Use our own header instead of User-Agent

parent 4dbd58a2
......@@ -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)
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment