aboutsummaryrefslogtreecommitdiffhomepage
path: root/modules/caddyhttp/responsewriter.go
diff options
context:
space:
mode:
authorMatthew Holt <[email protected]>2022-09-17 11:28:13 -0600
committerMatthew Holt <[email protected]>2022-09-17 11:28:13 -0600
commit00beec2e34cbbc111c5f61058ee5b2b05c90ca8b (patch)
tree1fcb4cbc28ecc0336208e357635b533aabfa10ea /modules/caddyhttp/responsewriter.go
parentb4643994d521671a130e8b1e33ad3747af3618f5 (diff)
downloadcaddy-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.go2
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)
}
}