mirror of
https://github.com/projectdiscovery/httpx.git
synced 2024-09-11 17:46:08 +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
|
var oldHost = previousRequest[0].URL.Host
|
||||||
if newHost != oldHost{
|
if newHost != oldHost{
|
||||||
return http.ErrUseLastResponse // Tell the http client to not follow redirect
|
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