diff options
author | WeidiDeng <[email protected]> | 2024-12-08 20:51:35 +0800 |
---|---|---|
committer | GitHub <[email protected]> | 2024-12-08 20:51:35 +0800 |
commit | 17982787aec14b525d7431096eb9b7685654719e (patch) | |
tree | 7a0d51e4aa624fb0fb81336c29dd7e320f9357c9 /modules/caddyhttp | |
parent | 52792d7b9bac54671b8d7c715d702166952e8f83 (diff) | |
download | caddy-17982787aec14b525d7431096eb9b7685654719e.tar.gz caddy-17982787aec14b525d7431096eb9b7685654719e.zip |
fix lint
Diffstat (limited to 'modules/caddyhttp')
-rw-r--r-- | modules/caddyhttp/encode/encode.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/caddyhttp/encode/encode.go b/modules/caddyhttp/encode/encode.go index f2fa52b73..e5d744b17 100644 --- a/modules/caddyhttp/encode/encode.go +++ b/modules/caddyhttp/encode/encode.go @@ -249,7 +249,7 @@ func (rw *responseWriter) WriteHeader(status int) { // write status immediately if status is 2xx and the request is CONNECT // since it means the response is successful. - // see: https://github.com/caddyserver/caddy/issues/6733#issuecomment-2525058845 + // see: https://github.com/caddyserver/caddy/issues/6733#issuecomment-2525058845 if rw.isConnect && 200 <= status && status <= 299 { rw.ResponseWriter.WriteHeader(status) rw.wroteHeader = true |