diff options
author | Matthew Holt <[email protected]> | 2022-09-17 11:28:13 -0600 |
---|---|---|
committer | Matthew Holt <[email protected]> | 2022-09-17 11:28:13 -0600 |
commit | 00beec2e34cbbc111c5f61058ee5b2b05c90ca8b (patch) | |
tree | 1fcb4cbc28ecc0336208e357635b533aabfa10ea /modules/caddyhttp/responsewriter.go | |
parent | b4643994d521671a130e8b1e33ad3747af3618f5 (diff) | |
download | caddy-00beec2e34cbbc111c5f61058ee5b2b05c90ca8b.tar.gz caddy-00beec2e34cbbc111c5f61058ee5b2b05c90ca8b.zip |
caddyhttp: Fix write header on responseRecorderv2.6.0-beta.5
Diffstat (limited to 'modules/caddyhttp/responsewriter.go')
-rw-r--r-- | modules/caddyhttp/responsewriter.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/caddyhttp/responsewriter.go b/modules/caddyhttp/responsewriter.go index 9820b41bc..4e2c8f00f 100644 --- a/modules/caddyhttp/responsewriter.go +++ b/modules/caddyhttp/responsewriter.go @@ -185,7 +185,7 @@ func (rr *responseRecorder) WriteHeader(statusCode int) { // if informational or not buffered, immediately write header if rr.stream || (100 <= statusCode && statusCode <= 199) { - rr.ResponseWriterWrapper.WriteHeader(rr.statusCode) + rr.ResponseWriterWrapper.WriteHeader(statusCode) } } |