Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-workhorse
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-workhorse
Commits
d4a94ded
Commit
d4a94ded
authored
Nov 09, 2015
by
Jacob Vosmaer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change identifying header to "Gitlab-Workhorse"
parent
efbc977c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
main.go
main.go
+1
-1
upstream.go
upstream.go
+1
-1
No files found.
main.go
View file @
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"
)
...
...
upstream.go
View file @
d4a94ded
...
...
@@ -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
(
"Git
Lab-Git-HTTP-Server
"
,
Version
)
authReq
.
Header
.
Set
(
"Git
lab-Workhorse
"
,
Version
)
return
authReq
,
nil
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment