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
1
Merge Requests
1
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
nexedi
gitlab-workhorse
Commits
0c664e4a
Commit
0c664e4a
authored
Aug 25, 2016
by
Jacob Vosmaer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move comment
parent
0d5831b6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
internal/api/block.go
internal/api/block.go
+2
-2
No files found.
internal/api/block.go
View file @
0c664e4a
...
@@ -7,6 +7,8 @@ import (
...
@@ -7,6 +7,8 @@ import (
"gitlab.com/gitlab-org/gitlab-workhorse/internal/helper"
"gitlab.com/gitlab-org/gitlab-workhorse/internal/helper"
)
)
// Prevent internal API responses intended for gitlab-workhorse from
// leaking to the end user
func
Block
(
h
http
.
Handler
)
http
.
Handler
{
func
Block
(
h
http
.
Handler
)
http
.
Handler
{
return
http
.
HandlerFunc
(
func
(
w
http
.
ResponseWriter
,
r
*
http
.
Request
)
{
return
http
.
HandlerFunc
(
func
(
w
http
.
ResponseWriter
,
r
*
http
.
Request
)
{
rw
:=
&
blocker
{
rw
:
w
}
rw
:=
&
blocker
{
rw
:
w
}
...
@@ -21,8 +23,6 @@ type blocker struct {
...
@@ -21,8 +23,6 @@ type blocker struct {
status
int
status
int
}
}
// Prevent internal API responses intended for gitlab-workhorse from
// leaking to the end user
func
(
b
*
blocker
)
Header
()
http
.
Header
{
func
(
b
*
blocker
)
Header
()
http
.
Header
{
return
b
.
rw
.
Header
()
return
b
.
rw
.
Header
()
}
}
...
...
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