diff --git a/common/httpx/httpx.go b/common/httpx/httpx.go index 58385dd..e68a223 100644 --- a/common/httpx/httpx.go +++ b/common/httpx/httpx.go @@ -56,10 +56,9 @@ func New(options *Options) (*HTTPX, error) { var oldHost = previousRequest[0].URL.Host if newHost != oldHost{ return http.ErrUseLastResponse // Tell the http client to not follow redirect - } else { - // Go through with the redirect - return nil - } + } + return nil + } }