diff --git a/internal/util/forwarder/sniffer.go b/internal/util/forwarder/sniffer.go index 0d77c1e5..86235d48 100644 --- a/internal/util/forwarder/sniffer.go +++ b/internal/util/forwarder/sniffer.go @@ -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 diff --git a/internal/util/sniffing/sniffer.go b/internal/util/sniffing/sniffer.go index 3893c824..7b42e0df 100644 --- a/internal/util/sniffing/sniffer.go +++ b/internal/util/sniffing/sniffer.go @@ -360,7 +360,7 @@ func (h *Sniffer) httpRoundTrip(ctx context.Context, rw, cc io.ReadWriteCloser, err = fmt.Errorf("read response: %v", err) return } - if resp.StatusCode >= http.StatusContinue && resp.StatusCode < http.StatusOK { + if resp.StatusCode == http.StatusContinue { resp.Write(rw) resp.Body.Close() continue