未验证 提交 d50e59bc 编写于 作者: K KubeSphere CI Bot 提交者: GitHub

Merge pull request #2324 from wanjunlei/auditing

make the ResponseCapture implements CloseNotify interface
......@@ -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()
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册