Upgrading server dependancies (#4566)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
0b296dd8c2
Коммит
0135904f7d
2
vendor/github.com/NYTimes/gziphandler/gzip.go
сгенерированный
поставляемый
2
vendor/github.com/NYTimes/gziphandler/gzip.go
сгенерированный
поставляемый
@@ -181,7 +181,7 @@ func GzipHandler(h http.Handler) http.Handler {
|
||||
}
|
||||
|
||||
// acceptsGzip returns true if the given HTTP request indicates that it will
|
||||
// accept a gzippped response.
|
||||
// accept a gzipped response.
|
||||
func acceptsGzip(r *http.Request) bool {
|
||||
acceptedEncodings, _ := parseEncodings(r.Header.Get(acceptEncoding))
|
||||
return acceptedEncodings["gzip"] > 0.0
|
||||
|
||||
Ссылка в новой задаче
Block a user