mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-16 21:56:40 -05:00
encode: Fix infinite recursion (#5672)
This commit is contained in:
parent
cd486c25d1
commit
1913930783
1 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue