caddyhttp: Fix write header on responseRecorder

This commit is contained in:
Matthew Holt 2022-09-17 11:28:13 -06:00
parent b4643994d5
commit 00beec2e34
No known key found for this signature in database
GPG Key ID: 2A349DD577D586A5

View File

@ -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)
}
}