Skip to content

Commit 7e567e0

Browse files
authored
Update dump.go
1 parent 0330dfd commit 7e567e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dump.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,14 @@ func (r *bodyWriter) WriteHeader(code int) {
5656
// implements http.Flusher
5757
func (w *bodyWriter) Flush() {
5858
if f, ok := w.ResponseWriter.(http.Flusher); ok {
59-
f.ResponseWriter.(http.Flusher).Flush()
59+
f.Flush()
6060
}
6161
}
6262

6363
// implements http.Hijacker
6464
func (w *bodyWriter) Hijack() (net.Conn, *bufio.ReadWriter, error) {
6565
if hi, ok := w.ResponseWriter.(http.Hijacker); ok {
66-
return hi.ResponseWriter.(http.Hijacker).Hijack()
66+
return hi.Hijack()
6767
}
6868

6969
return nil, nil, errors.New("Hijack not supported")

0 commit comments

Comments
 (0)