mirror of
https://github.com/kemko/nomad.git
synced 2026-01-04 17:35:43 +03:00
vendor gzip
This commit is contained in:
2
vendor/github.com/NYTimes/gziphandler/gzip.go
generated
vendored
2
vendor/github.com/NYTimes/gziphandler/gzip.go
generated
vendored
@@ -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
6
vendor/vendor.json
vendored
@@ -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=",
|
||||
|
||||
Reference in New Issue
Block a user