Commit 9f21928a authored by JessonChan's avatar JessonChan

some typo fixed

parent 0b401481
......@@ -32,7 +32,7 @@ import (
var (
//Content will only be compressed if content length is either unknown or greater than gzipMinLength.
gzipMinLength int
//Default size==20B like nginx
//Default size==20B same as nginx
defaultGzipMinLength = 20
//The compression level used for deflate compression. (0-9).
gzipCompressLevel int
......@@ -43,7 +43,7 @@ var (
func InitGzip(cf config.Configer) {
gzipMinLength = cf.DefaultInt("gzipMinLength", defaultGzipMinLength)
gzipCompressLevel = cf.DefaultInt("gzipCompressLevel", flate.DefaultCompression)
gzipCompressLevel = cf.DefaultInt("gzipCompressLevel", flate.BestSpeed)
if gzipCompressLevel < flate.DefaultCompression || gzipCompressLevel > flate.BestCompression {
gzipCompressLevel = flate.BestSpeed
}
......
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