diff options
Diffstat (limited to 'vendor/github.com/gin-contrib/gzip')
-rw-r--r-- | vendor/github.com/gin-contrib/gzip/.gitignore | 1 | ||||
-rw-r--r-- | vendor/github.com/gin-contrib/gzip/.golangci.yml | 48 | ||||
-rw-r--r-- | vendor/github.com/gin-contrib/gzip/handler.go | 1 |
3 files changed, 49 insertions, 1 deletions
diff --git a/vendor/github.com/gin-contrib/gzip/.gitignore b/vendor/github.com/gin-contrib/gzip/.gitignore new file mode 100644 index 000000000..2d830686d --- /dev/null +++ b/vendor/github.com/gin-contrib/gzip/.gitignore @@ -0,0 +1 @@ +coverage.out diff --git a/vendor/github.com/gin-contrib/gzip/.golangci.yml b/vendor/github.com/gin-contrib/gzip/.golangci.yml new file mode 100644 index 000000000..60b7c368b --- /dev/null +++ b/vendor/github.com/gin-contrib/gzip/.golangci.yml @@ -0,0 +1,48 @@ +linters: + enable-all: false + disable-all: true + fast: false + enable: + - bodyclose + - deadcode + - depguard + - dogsled + - dupl + - errcheck + - exportloopref + - exhaustive + - gochecknoinits + - goconst + - gocritic + - gocyclo + - gofmt + - goimports + - goprintffuncname + - gosec + - gosimple + - govet + - ineffassign + - lll + - misspell + - nakedret + - noctx + - nolintlint + - rowserrcheck + - staticcheck + - structcheck + - stylecheck + - typecheck + - unconvert + - unparam + - unused + - varcheck + - whitespace + - gofumpt + +run: + timeout: 3m + +linters-settings: + dupl: + # tokens count to trigger issue, 150 by default + threshold: 200 diff --git a/vendor/github.com/gin-contrib/gzip/handler.go b/vendor/github.com/gin-contrib/gzip/handler.go index 58f87db9b..7de33eb64 100644 --- a/vendor/github.com/gin-contrib/gzip/handler.go +++ b/vendor/github.com/gin-contrib/gzip/handler.go @@ -64,7 +64,6 @@ func (g *gzipHandler) shouldCompress(req *http.Request) bool { if !strings.Contains(req.Header.Get("Accept-Encoding"), "gzip") || strings.Contains(req.Header.Get("Connection"), "Upgrade") || strings.Contains(req.Header.Get("Accept"), "text/event-stream") { - return false } |