requests
requests copied to clipboard
New exception when redirect url is invalid
Currently when redirect response with invalid redirect URL is returned, we receive the same error (InvalidURL, InvalidSchema, LocationParseError) as when passing wrong URL that is used for first request in chain. It would be good to have those cases separated (e.g. to try fix it in custom way)