Commit 9c6ec296 authored by Juan Benet's avatar Juan Benet

Merge pull request #1704 from klauspost/use-compression-level

Fix gzip compression level not being set.
parents e812abbc 4b81d9e8
......@@ -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
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment