Skip to content

Commit d5b9f4f

Browse files
committed
New Gzip
1 parent 96bd9c3 commit d5b9f4f

38 files changed

+9998
-755
lines changed

go.mod

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ go 1.18
44

55
require (
66
github.com/Masterminds/squirrel v1.5.4
7-
github.com/NYTimes/gziphandler v1.1.1
87
github.com/alecthomas/units v0.0.0-20211218093645-b94a6e3cc137
98
github.com/alicebob/miniredis/v2 v2.30.1
109
github.com/armon/go-metrics v0.4.1

go.sum

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,6 @@ github.com/Microsoft/hcsshim v0.9.2/go.mod h1:7pLA8lDk46WKDWlVsENo92gC0XFa8rbKfy
476476
github.com/Microsoft/hcsshim/test v0.0.0-20201218223536-d3e5debf77da/go.mod h1:5hlzMzRKMLyo42nCZ9oml8AdTlq/0cvIaBv6tK1RehU=
477477
github.com/Microsoft/hcsshim/test v0.0.0-20210227013316-43a75bb4edd3/go.mod h1:mw7qgWloBUl75W/gVH3cQszUg1+gUITj7D6NY7ywVnY=
478478
github.com/NYTimes/gziphandler v0.0.0-20170623195520-56545f4a5d46/go.mod h1:3wb06e3pkSAbeQ52E9H9iFoQsEEwGN64994WTCIhntQ=
479-
github.com/NYTimes/gziphandler v1.1.1 h1:ZUDjpQae29j0ryrS0u/B8HZfJBtBQHjqw2rQ2cqUQ3I=
480479
github.com/NYTimes/gziphandler v1.1.1/go.mod h1:n/CVRwUEOgIxrgPvAQhUUr9oeUtvrhMomdKFjzJNB0c=
481480
github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU=
482481
github.com/OneOfOne/xxhash v1.2.6 h1:U68crOE3y3MPttCMQGywZOLrTeF5HHJ3/vDBCJn9/bA=

pkg/api/api.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ import (
77
"path"
88
"strings"
99

10-
"github.com/NYTimes/gziphandler"
1110
"github.com/felixge/fgprof"
1211
"github.com/go-kit/log"
1312
"github.com/go-kit/log/level"
13+
"github.com/klauspost/compress/gzhttp"
1414
"github.com/prometheus/prometheus/storage"
1515
"github.com/weaveworks/common/middleware"
1616
"github.com/weaveworks/common/server"
@@ -145,7 +145,7 @@ func (a *API) RegisterRoute(path string, handler http.Handler, auth bool, method
145145
}
146146

147147
if a.cfg.ResponseCompression {
148-
handler = gziphandler.GzipHandler(handler)
148+
handler = gzhttp.GzipHandler(handler)
149149
}
150150
if a.HTTPHeaderMiddleware != nil {
151151
handler = a.HTTPHeaderMiddleware.Wrap(handler)
@@ -165,7 +165,7 @@ func (a *API) RegisterRoutesWithPrefix(prefix string, handler http.Handler, auth
165165
}
166166

167167
if a.cfg.ResponseCompression {
168-
handler = gziphandler.GzipHandler(handler)
168+
handler = gzhttp.GzipHandler(handler)
169169
}
170170
if a.HTTPHeaderMiddleware != nil {
171171
handler = a.HTTPHeaderMiddleware.Wrap(handler)

vendor/github.com/NYTimes/gziphandler/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

vendor/github.com/NYTimes/gziphandler/.travis.yml

Lines changed: 0 additions & 10 deletions
This file was deleted.

vendor/github.com/NYTimes/gziphandler/CODE_OF_CONDUCT.md

Lines changed: 0 additions & 75 deletions
This file was deleted.

vendor/github.com/NYTimes/gziphandler/CONTRIBUTING.md

Lines changed: 0 additions & 30 deletions
This file was deleted.

vendor/github.com/NYTimes/gziphandler/README.md

Lines changed: 0 additions & 56 deletions
This file was deleted.

0 commit comments

Comments
 (0)