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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kazuhiko Shiozaki
gitlab-workhorse
Commits
2cc94bc8
Commit
2cc94bc8
authored
Nov 12, 2015
by
Kamil Trzciński
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'rename-header' into 'master'
Change identifying header to "Gitlab-Workhorse" See merge request !8
parents
734a5b72
d4a94ded
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 @
2cc94bc8
...
@@ -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"
)
...
...
upstream.go
View file @
2cc94bc8
...
@@ -145,7 +145,7 @@ func (u *upstream) newUpstreamRequest(r *http.Request, body io.Reader, suffix st
...
@@ -145,7 +145,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
(
"Git
Lab-Git-HTTP-Server
"
,
Version
)
authReq
.
Header
.
Set
(
"Git
lab-Workhorse
"
,
Version
)
return
authReq
,
nil
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