Commit 2cc94bc8 authored by Kamil Trzciński's avatar Kamil Trzciński

Merge branch 'rename-header' into 'master'

Change identifying header to "Gitlab-Workhorse"



See merge request !8
parents 734a5b72 d4a94ded
......@@ -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")
......
......@@ -145,7 +145,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