mirror of
https://github.com/caddyserver/caddy.git
synced 2025-01-19 05:42:45 +08:00
caddyhttp: Fix write header on responseRecorder
This commit is contained in:
parent
b4643994d5
commit
00beec2e34
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user