mirror of
https://github.com/astaxie/beego.git
synced 2025-07-29 06:15:32 +00:00
gzip method support
This commit is contained in:
@@ -96,9 +96,11 @@ func (ac acceptEncoder) put(wr resetWriter, level int) {
|
||||
return
|
||||
}
|
||||
wr.Reset(nil)
|
||||
|
||||
//notice
|
||||
//compressionLevel==BestCompression DOES NOT MATTER
|
||||
//sync.Pool will not memory leak
|
||||
|
||||
switch level {
|
||||
case gzipCompressLevel:
|
||||
ac.customCompressLevelPool.Put(wr)
|
||||
|
Reference in New Issue
Block a user