summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2022-09-17 11:28:13 -0600
committerMatthew Holt <mholt@users.noreply.github.com>2022-09-17 11:28:13 -0600
commit00beec2e34cbbc111c5f61058ee5b2b05c90ca8b (patch)
tree1fcb4cbc28ecc0336208e357635b533aabfa10ea
parentb4643994d521671a130e8b1e33ad3747af3618f5 (diff)
caddyhttp: Fix write header on responseRecorder
-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 9820b41..4e2c8f0 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)
}
}