diff --git a/proxy/router.go b/proxy/router.go index ed2f18c..fe24361 100644 --- a/proxy/router.go +++ b/proxy/router.go @@ -67,7 +67,7 @@ func NewRouter(srv *Server, opts *RouterOptions) *Router { TLSClientConfig: &tls.Config{InsecureSkipVerify: true}, } rt.proxy.ModifyResponse = func(r *http.Response) error { - if r.StatusCode == http.StatusOK || r.StatusCode == http.StatusFound { + if r.StatusCode == http.StatusOK { var buf []byte if strings.Contains(r.Header.Get("Content-Encoding"), "gzip") { gr, err := gzip.NewReader(r.Body)