From 4c38cd6adcfd4b7e015e3a0e5b9534af3776fb55 Mon Sep 17 00:00:00 2001 From: Alex Dadgar Date: Tue, 19 Sep 2017 11:31:42 -0500 Subject: [PATCH] vendor gzip --- vendor/github.com/NYTimes/gziphandler/gzip.go | 2 +- vendor/vendor.json | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/vendor/github.com/NYTimes/gziphandler/gzip.go b/vendor/github.com/NYTimes/gziphandler/gzip.go index 92b1dc618..b6af9115a 100644 --- a/vendor/github.com/NYTimes/gziphandler/gzip.go +++ b/vendor/github.com/NYTimes/gziphandler/gzip.go @@ -105,7 +105,7 @@ func (w *GzipResponseWriter) Write(b []byte) (int, error) { // If the global writes are bigger than the minSize and we're about to write // a response containing a content type we want to handle, enable // compression. - if len(w.buf) >= w.minSize && handleContentType(w.contentTypes, w) { + if len(w.buf) >= w.minSize && handleContentType(w.contentTypes, w) && w.Header().Get(contentEncoding) == "" { err := w.startGzip() if err != nil { return 0, err diff --git a/vendor/vendor.json b/vendor/vendor.json index e7f4002f7..2d07d8608 100644 --- a/vendor/vendor.json +++ b/vendor/vendor.json @@ -31,10 +31,10 @@ "revisionTime": "2017-05-24T00:36:31Z" }, { - "checksumSHA1": "42EQ8OS9lg+NZIfWRRVFVozbAig=", + "checksumSHA1": "jktW57+vJsziNVPeXMCoujTzdW4=", "path": "github.com/NYTimes/gziphandler", - "revision": "46766160161ff594e6d56bf8fcffb0b0399dc62d", - "revisionTime": "2017-09-01T11:48:55Z" + "revision": "97ae7fbaf81620fe97840685304a78a306a39c64", + "revisionTime": "2017-09-16T00:36:49Z" }, { "checksumSHA1": "Aqy8/FoAIidY/DeQ5oTYSZ4YFVc=",