vendor gzip

This commit is contained in:
Alex Dadgar
2017-09-19 11:31:42 -05:00
parent a66f32ea58
commit 4c38cd6adc
2 changed files with 4 additions and 4 deletions

View File

@@ -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

6
vendor/vendor.json vendored
View File

@@ -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=",