fix sniffing for websocket
This commit is contained in:
@@ -506,7 +506,7 @@ func (h *Sniffer) httpRoundTrip(ctx context.Context, rw, cc io.ReadWriteCloser,
|
||||
res.Write(rw)
|
||||
return
|
||||
}
|
||||
if resp.StatusCode >= http.StatusContinue && resp.StatusCode < http.StatusOK {
|
||||
if resp.StatusCode == http.StatusContinue {
|
||||
resp.Write(rw)
|
||||
resp.Body.Close()
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user