Restrict URL preparation to HTTP/HTTPS
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Requests treats all URLs starting with the string 'http' as HTTP URLs. Preparation with IDNA breaks non-standard URIs like http+unix. Requests now prepares only URLs with prefix http:// and https://.
authored by Christian Heimes · committed by Christian Heimes · parent 268672a · Browse files · 2 files+20 added−3 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Trailers
- Signed-off-by: Christian Heimes <christian@python.org>
Diff stats
2 files+20 added−3 removed
- tests:+17 added−0 removed
- other:+3 added−3 removed