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
0d5831b6
Commit
0d5831b6
authored
Aug 24, 2016
by
Jacob Vosmaer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document some code
parent
d402da30
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
internal/api/block.go
internal/api/block.go
+2
-0
internal/api/secret.go
internal/api/secret.go
+3
-0
No files found.
internal/api/block.go
View file @
0d5831b6
...
...
@@ -21,6 +21,8 @@ type blocker struct {
status
int
}
// Prevent internal API responses intended for gitlab-workhorse from
// leaking to the end user
func
(
b
*
blocker
)
Header
()
http
.
Header
{
return
b
.
rw
.
Header
()
}
...
...
internal/api/secret.go
View file @
0d5831b6
...
...
@@ -15,6 +15,9 @@ type Secret struct {
sync
.
RWMutex
}
// Lazy access to the HMAC secret key. We must be lazy because if the key
// is not already there, it will be generated by gitlab-rails, and
// gitlab-rails is slow.
func
(
s
*
Secret
)
Bytes
()
([]
byte
,
error
)
{
if
bytes
:=
s
.
getBytes
();
bytes
!=
nil
{
return
bytes
,
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