summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/caddyhttp/encode/encode.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/modules/caddyhttp/encode/encode.go b/modules/caddyhttp/encode/encode.go
index 723b988..1838885 100644
--- a/modules/caddyhttp/encode/encode.go
+++ b/modules/caddyhttp/encode/encode.go
@@ -162,9 +162,6 @@ func (rw *responseWriter) Write(p []byte) (int, error) {
if err != nil {
return 0, err
}
- if rw.buf.Len() < rw.config.MinLength {
- return len(p), nil
- }
rw.init()
p = rw.buf.Bytes()
defer func() {