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
f94c4651
Commit
f94c4651
authored
Dec 08, 2015
by
Jacob Vosmaer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
That change does not belong here
parent
c111e8aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
handlers.go
handlers.go
+1
-1
No files found.
handlers.go
View file @
f94c4651
...
@@ -19,7 +19,6 @@ func contentEncodingHandler(handleFunc serviceHandleFunc) serviceHandleFunc {
...
@@ -19,7 +19,6 @@ func contentEncodingHandler(handleFunc serviceHandleFunc) serviceHandleFunc {
body
=
r
.
Body
body
=
r
.
Body
case
"gzip"
:
case
"gzip"
:
body
,
err
=
gzip
.
NewReader
(
r
.
Body
)
body
,
err
=
gzip
.
NewReader
(
r
.
Body
)
defer
body
.
Close
()
default
:
default
:
err
=
fmt
.
Errorf
(
"unsupported content encoding: %s"
,
contentEncoding
)
err
=
fmt
.
Errorf
(
"unsupported content encoding: %s"
,
contentEncoding
)
}
}
...
@@ -28,6 +27,7 @@ func contentEncodingHandler(handleFunc serviceHandleFunc) serviceHandleFunc {
...
@@ -28,6 +27,7 @@ func contentEncodingHandler(handleFunc serviceHandleFunc) serviceHandleFunc {
fail500
(
w
,
fmt
.
Errorf
(
"contentEncodingHandler: %v"
,
err
))
fail500
(
w
,
fmt
.
Errorf
(
"contentEncodingHandler: %v"
,
err
))
return
return
}
}
defer
body
.
Close
()
r
.
Body
=
body
r
.
Body
=
body
r
.
Header
.
Del
(
"Content-Encoding"
)
r
.
Header
.
Del
(
"Content-Encoding"
)
...
...
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