mirror of
https://github.com/projectdiscovery/httpx.git
synced 2024-08-17 05:20:29 +03:00
Simplified Code
This commit is contained in:
parent
d1ad649b8c
commit
60c045ca85
@ -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
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user