Commit d4a94ded authored by Jacob Vosmaer's avatar Jacob Vosmaer

Change identifying header to "Gitlab-Workhorse"

parent efbc977c
......@@ -25,7 +25,7 @@ import (
"time"
)
var Version string // Set at build time in the Makefile
var Version = "(unknown version)" // Set at build time in the Makefile
func main() {
printVersion := flag.Bool("version", false, "Print version and exit")
......
......@@ -136,7 +136,7 @@ func (u *upstream) newUpstreamRequest(r *http.Request, body io.Reader, suffix st
authReq.Host = r.Host
// Set a custom header for the request. This can be used in some
// configurations (Passenger) to solve auth request routing problems.
authReq.Header.Set("GitLab-Git-HTTP-Server", Version)
authReq.Header.Set("Gitlab-Workhorse", Version)
return authReq, nil
}
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