Merge pull request #2324 from wanjunlei/auditing

make the ResponseCapture implements CloseNotify interface
This commit is contained in:
KubeSphere CI Bot
2020-07-07 14:38:46 +08:00
committed by GitHub

View File

@@ -251,3 +251,8 @@ func (c *ResponseCapture) Hijack() (net.Conn, *bufio.ReadWriter, error) {
}
return hijacker.Hijack()
}
// CloseNotify is part of http.CloseNotifier interface
func (c *ResponseCapture) CloseNotify() <-chan bool {
return c.ResponseWriter.(http.CloseNotifier).CloseNotify()
}