mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 22:50:18 +00:00
We no longer downcase some hosts.
This commit is contained in:
@@ -25,6 +25,8 @@ Release History
|
||||
on Windows with Python 2.7.
|
||||
- Changed the proxy bypass implementation on Windows: the proxy bypass
|
||||
check doesn't use forward and reverse DNS requests anymore
|
||||
- URLs with schemes that begin with ``http`` but are not ``http`` or ``https``
|
||||
no longer have their host parts forced to lowercase.
|
||||
|
||||
**Bugfixes**
|
||||
|
||||
|
||||
@@ -2308,12 +2308,12 @@ class TestPreparingURLs(object):
|
||||
'input, expected',
|
||||
(
|
||||
(
|
||||
b"http+unix://%2Fvar%2Frun%2Fsocket/path",
|
||||
u"http+unix://%2fvar%2frun%2fsocket/path",
|
||||
b"http+unix://%2Fvar%2Frun%2Fsocket/path%7E",
|
||||
u"http+unix://%2Fvar%2Frun%2Fsocket/path~",
|
||||
),
|
||||
(
|
||||
u"http+unix://%2Fvar%2Frun%2Fsocket/path",
|
||||
u"http+unix://%2fvar%2frun%2fsocket/path",
|
||||
u"http+unix://%2Fvar%2Frun%2Fsocket/path%7E",
|
||||
u"http+unix://%2Fvar%2Frun%2Fsocket/path~",
|
||||
),
|
||||
(
|
||||
b"mailto:user@example.org",
|
||||
@@ -2346,12 +2346,12 @@ class TestPreparingURLs(object):
|
||||
(
|
||||
b"http+unix://%2Fvar%2Frun%2Fsocket/path",
|
||||
{"key": "value"},
|
||||
u"http+unix://%2fvar%2frun%2fsocket/path?key=value",
|
||||
u"http+unix://%2Fvar%2Frun%2Fsocket/path?key=value",
|
||||
),
|
||||
(
|
||||
u"http+unix://%2Fvar%2Frun%2Fsocket/path",
|
||||
{"key": "value"},
|
||||
u"http+unix://%2fvar%2frun%2fsocket/path?key=value",
|
||||
u"http+unix://%2Fvar%2Frun%2Fsocket/path?key=value",
|
||||
),
|
||||
(
|
||||
b"mailto:user@example.org",
|
||||
|
||||
Reference in New Issue
Block a user