colly
colly copied to clipboard
Fix more cases of pages redirecting to themselves
This was "fixed" in b4ca6a7a17 (#763), but the fix turned out to be incomplete.
That fix only allowed redirects leading to the same URL as the original destination, and didn't take into account more complicated cases. Such as, for example:
- www.example.com
- example.com
- (set cookie)
- example.com