QUERY · ISSUE
"requests" does not handle redirection with relative path correctly
In python-ecosys/requests/requests/init.py:183,
The url redirect can be a relative path, which cause the missing of hostname and protocal at redirecting.
CANDIDATE · PULL REQUEST
requests: Added support for some non-standard URLs
In some cases, servers may return non-standard URLs like https://ecard.v.zzu.edu.cn?tid=xxxx in "Location" line, which could not be properly treated since there are no slashes between hostname and remote path. So I added my code to separate remote path from hostname.