We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0330dfd commit 7e567e0Copy full SHA for 7e567e0
dump.go
@@ -56,14 +56,14 @@ func (r *bodyWriter) WriteHeader(code int) {
56
// implements http.Flusher
57
func (w *bodyWriter) Flush() {
58
if f, ok := w.ResponseWriter.(http.Flusher); ok {
59
- f.ResponseWriter.(http.Flusher).Flush()
+ f.Flush()
60
}
61
62
63
// implements http.Hijacker
64
func (w *bodyWriter) Hijack() (net.Conn, *bufio.ReadWriter, error) {
65
if hi, ok := w.ResponseWriter.(http.Hijacker); ok {
66
- return hi.ResponseWriter.(http.Hijacker).Hijack()
+ return hi.Hijack()
67
68
69
return nil, nil, errors.New("Hijack not supported")
0 commit comments