Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
9c6ec296
Commit
9c6ec296
authored
Sep 23, 2015
by
Juan Benet
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1704 from klauspost/use-compression-level
Fix gzip compression level not being set.
parents
e812abbc
4b81d9e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
core/commands/get.go
core/commands/get.go
+1
-1
No files found.
core/commands/get.go
View file @
9c6ec296
...
...
@@ -188,5 +188,5 @@ func getCompressOptions(req cmds.Request) (int, error) {
case
cmprs
&&
cmplvlFound
&&
(
cmplvl
<
1
||
cmplvl
>
9
)
:
return
gzip
.
NoCompression
,
ErrInvalidCompressionLevel
}
return
gzip
.
NoCompression
,
nil
return
cmplvl
,
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