Commit d4a94ded authored by Jacob Vosmaer's avatar Jacob Vosmaer

Change identifying header to "Gitlab-Workhorse"

parent efbc977c
...@@ -25,7 +25,7 @@ import ( ...@@ -25,7 +25,7 @@ import (
"time" "time"
) )
var Version string // Set at build time in the Makefile var Version = "(unknown version)" // Set at build time in the Makefile
func main() { func main() {
printVersion := flag.Bool("version", false, "Print version and exit") 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 ...@@ -136,7 +136,7 @@ func (u *upstream) newUpstreamRequest(r *http.Request, body io.Reader, suffix st
authReq.Host = r.Host authReq.Host = r.Host
// Set a custom header 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. // 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 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