mirror of
https://github.com/datarhei/core.git
synced 2025-10-06 08:27:08 +08:00
Move content encoding in the beginning of the middleware chain, update dependencies
This commit is contained in:
@@ -15,7 +15,7 @@ func NewGzip(level Level) Compression {
|
||||
gzipLevel := gzip.DefaultCompression
|
||||
if level == BestCompression {
|
||||
gzipLevel = gzip.BestCompression
|
||||
} else {
|
||||
} else if level == BestSpeed {
|
||||
gzipLevel = gzip.BestSpeed
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user