Commit 4b81d9e8 authored by klauspost's avatar klauspost

Fix gzip compression level not being set.

If "compression-level" is set, the compression is set to gzip.Nocompression.

License: MIT
Signed-off-by: default avatarKlaus Post <klauspost@gmail.com>
parent df861afc
......@@ -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