mirror of
https://github.com/binwiederhier/ntfy.git
synced 2025-05-29 09:55:35 +02:00
Deprecation warnings
This commit is contained in:
parent
419bfecd6f
commit
46fcbdb827
3 changed files with 4 additions and 7 deletions
util
|
@ -3,7 +3,6 @@ package util
|
|||
import (
|
||||
"compress/gzip"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"net/http"
|
||||
"strings"
|
||||
"sync"
|
||||
|
@ -32,7 +31,7 @@ func Gzip(next http.Handler) http.Handler {
|
|||
|
||||
var gzPool = sync.Pool{
|
||||
New: func() interface{} {
|
||||
w := gzip.NewWriter(ioutil.Discard)
|
||||
w := gzip.NewWriter(io.Discard)
|
||||
return w
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue