aboutsummaryrefslogtreecommitdiffhomepage
path: root/modules/caddyhttp/encode/encode_test.go
diff options
context:
space:
mode:
authorWeidiDeng <[email protected]>2024-12-12 02:15:01 +0800
committerGitHub <[email protected]>2024-12-11 11:15:01 -0700
commitbcaa8aaf114629031d10dcef0ca7680ae8163e32 (patch)
tree5f9c5921347eb6cddd11fffbc5c108066783ac3c /modules/caddyhttp/encode/encode_test.go
parentd0e209e1da6cd6d7d61e83b851f2913ee31454f8 (diff)
downloadcaddy-bcaa8aaf114629031d10dcef0ca7680ae8163e32.tar.gz
caddy-bcaa8aaf114629031d10dcef0ca7680ae8163e32.zip
encode: write status immediate for success response for CONNECT requests (#6738)
* encode: write status immediate for success response for CONNECT requests * fix compile * fix test * fix lint * treat first write and flush for encode response writer to CONNECT request as success if status is not set explicitly
Diffstat (limited to 'modules/caddyhttp/encode/encode_test.go')
-rw-r--r--modules/caddyhttp/encode/encode_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/caddyhttp/encode/encode_test.go b/modules/caddyhttp/encode/encode_test.go
index d76945498..83effa58c 100644
--- a/modules/caddyhttp/encode/encode_test.go
+++ b/modules/caddyhttp/encode/encode_test.go
@@ -9,7 +9,7 @@ import (
func BenchmarkOpenResponseWriter(b *testing.B) {
enc := new(Encode)
for n := 0; n < b.N; n++ {
- enc.openResponseWriter("test", nil)
+ enc.openResponseWriter("test", nil, false)
}
}