aboutsummaryrefslogtreecommitdiffhomepage
path: root/modules/caddyhttp/encode
diff options
context:
space:
mode:
authorYolan Romailler <[email protected]>2024-01-25 16:24:58 +0100
committerGitHub <[email protected]>2024-01-25 15:24:58 +0000
commit2fe69a828f9fcacc0160a576839d4b67c5730031 (patch)
treefa8b74d9a53d9eab3011f50d710481647b1f0fdd /modules/caddyhttp/encode
parentc369df5c375685f35f5b9f47f5790124c28258c9 (diff)
downloadcaddy-2fe69a828f9fcacc0160a576839d4b67c5730031.tar.gz
caddy-2fe69a828f9fcacc0160a576839d4b67c5730031.zip
chore: enabling a few more linters (#5961)
Co-authored-by: Francis Lavoie <[email protected]>
Diffstat (limited to 'modules/caddyhttp/encode')
-rw-r--r--modules/caddyhttp/encode/encode.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/modules/caddyhttp/encode/encode.go b/modules/caddyhttp/encode/encode.go
index dc35fa245..8f733a3f2 100644
--- a/modules/caddyhttp/encode/encode.go
+++ b/modules/caddyhttp/encode/encode.go
@@ -311,7 +311,6 @@ func (rw *responseWriter) Unwrap() http.ResponseWriter {
func (rw *responseWriter) init() {
if rw.Header().Get("Content-Encoding") == "" && isEncodeAllowed(rw.Header()) &&
rw.config.Match(rw) {
-
rw.w = rw.config.writerPools[rw.encodingName].Get().(Encoder)
rw.w.Reset(rw.ResponseWriter)
rw.Header().Del("Content-Length") // https://github.com/golang/go/issues/14975