make the ResponseCapture implements CloseNotify interface
This commit is contained in:
@@ -251,3 +251,8 @@ func (c *ResponseCapture) Hijack() (net.Conn, *bufio.ReadWriter, error) {
|
|||||||
}
|
}
|
||||||
return hijacker.Hijack()
|
return hijacker.Hijack()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// CloseNotify is part of http.CloseNotifier interface
|
||||||
|
func (c *ResponseCapture) CloseNotify() <-chan bool {
|
||||||
|
return c.ResponseWriter.(http.CloseNotifier).CloseNotify()
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user