fix hasChain with 1 status code not working

This commit is contained in:
Ice3man 2024-06-24 18:42:21 +05:30
parent bbf3fa6a2d
commit fabadcddbc

View File

@ -97,7 +97,7 @@ func (r *Response) GetChainAsSlice() (chain []ChainItem) {
// HasChain redirects
func (r *Response) HasChain() bool {
return len(r.Chain) > 1
return len(r.Chain) >= 1
}
// GetChainLastURL returns the final URL