Fixup possible nil ref on err
@@ -113,7 +113,9 @@ func (r *Response) Hijack() (net.Conn, *bufio.ReadWriter, error) {
conn, brw, err := hijack.Hijack()
r.hijackedConn = conn
+ if brw != nil {
brw.Writer.Reset(r)
+ }
return conn, brw, err
}
