From 00beec2e34cbbc111c5f61058ee5b2b05c90ca8b Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Sat, 17 Sep 2022 11:28:13 -0600 Subject: caddyhttp: Fix write header on responseRecorder --- modules/caddyhttp/responsewriter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') 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) } } -- cgit v1.2.3