mirror of
https://github.com/projectdiscovery/httpx
synced 2026-06-08 16:50:17 +00:00
Simplified Code
This commit is contained in:
@@ -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
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user