Skip to content
Myr

We no longer downcase some hosts.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Cory Benfield · committed by Cory Benfield · parent 074c4a3 · Browse files · 2 files+8 added−6 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+8 added−6 removed

  • tests:+6 added−6 removed
  • other:+2 added−0 removed

2 files+8 added−6 removed

modified:tests/test_requests.py+6 added-6 removed
2306 unmodified lines
2307 @pytest.mark.parametrize(2308 'input, expected',2309 (2310 (2311 b"http+unix://%2Fvar%2Frun%2Fsocket/path",2312 u"http+unix://%2fvar%2frun%2fsocket/path",2311 b"http+unix://%2Fvar%2Frun%2Fsocket/path%7E",2312 u"http+unix://%2Fvar%2Frun%2Fsocket/path~",2313 ),2314 (2315 u"http+unix://%2Fvar%2Frun%2Fsocket/path",2316 u"http+unix://%2fvar%2frun%2fsocket/path",2315 u"http+unix://%2Fvar%2Frun%2Fsocket/path%7E",2316 u"http+unix://%2Fvar%2Frun%2Fsocket/path~",2317 ),2318 (2319 b"mailto:user@example.org",2320 u"mailto:user@example.org",
24 unmodified lines
2345 (2346 (2347 b"http+unix://%2Fvar%2Frun%2Fsocket/path",2348 {"key": "value"},2349 u"http+unix://%2fvar%2frun%2fsocket/path?key=value",2349 u"http+unix://%2Fvar%2Frun%2Fsocket/path?key=value",2350 ),2351 (2352 u"http+unix://%2Fvar%2Frun%2Fsocket/path",2353 {"key": "value"},2354 u"http+unix://%2fvar%2frun%2fsocket/path?key=value",2354 u"http+unix://%2Fvar%2Frun%2Fsocket/path?key=value",2355 ),2356 (2357 b"mailto:user@example.org",2358 {"key": "value"},
17 unmodified lines
modified:HISTORY.rst+2 added
23 unmodified lines
24- Added ``win_inet_pton`` as conditional dependency for the ``[socks]`` extra25 on Windows with Python 2.7.26- Changed the proxy bypass implementation on Windows: the proxy bypass27 check doesn't use forward and reverse DNS requests anymore28- URLs with schemes that begin with ``http`` but are not ``http`` or ``https``29 no longer have their host parts forced to lowercase.3031**Bugfixes**3233- Much improved handling of non-ASCII ``Location`` header values in redirects.
1321 unmodified lines