mirror of
https://github.com/caddyserver/caddy.git
synced 2025-05-24 02:02:26 -04:00
encode: Fix infinite recursion (#5672)
This commit is contained in:
parent
cd486c25d1
commit
1913930783
@ -212,7 +212,7 @@ func (rw *responseWriter) Flush() {
|
||||
return
|
||||
}
|
||||
//nolint:bodyclose
|
||||
http.NewResponseController(rw).Flush()
|
||||
http.NewResponseController(rw.ResponseWriter).Flush()
|
||||
}
|
||||
|
||||
// Hijack implements http.Hijacker. It will flush status code if set. We don't track actual hijacked
|
||||
@ -225,7 +225,7 @@ func (rw *responseWriter) Hijack() (net.Conn, *bufio.ReadWriter, error) {
|
||||
rw.wroteHeader = true
|
||||
}
|
||||
//nolint:bodyclose
|
||||
return http.NewResponseController(rw).Hijack()
|
||||
return http.NewResponseController(rw.ResponseWriter).Hijack()
|
||||
}
|
||||
|
||||
// Write writes to the response. If the response qualifies,
|
||||
|
Loading…
x
Reference in New Issue
Block a user