We no longer downcase some hosts.

This commit is contained in:
Cory Benfield
2017-05-09 10:08:06 +01:00
parent 074c4a32d8
commit ddada2d750
2 changed files with 8 additions and 6 deletions
+2
View File
@@ -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**
+6 -6
View File
@@ -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",