diff options
| author | Zackery Spytz <zspytz@gmail.com> | 2019-09-13 08:07:07 -0600 |
|---|---|---|
| committer | Stéphane Wirtel <stephane@wirtel.be> | 2019-09-13 15:07:07 +0100 |
| commit | b761e3aed1fbada4572a776f6a0d3c4be491d595 (patch) | |
| tree | 86d21eb690fd5f7cf43a86e0c3953c07de1e0e92 /Lib/urllib/request.py | |
| parent | 693aa80a434590ea7dcd35c000209e53d01b9425 (diff) | |
| download | cpython-git-b761e3aed1fbada4572a776f6a0d3c4be491d595.tar.gz | |
bpo-25068: urllib.request.ProxyHandler now lowercases the dict keys (GH-13489)
Diffstat (limited to 'Lib/urllib/request.py')
| -rw-r--r-- | Lib/urllib/request.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/urllib/request.py b/Lib/urllib/request.py index 267a90dd80..721c152179 100644 --- a/Lib/urllib/request.py +++ b/Lib/urllib/request.py @@ -792,6 +792,7 @@ class ProxyHandler(BaseHandler): assert hasattr(proxies, 'keys'), "proxies must be a mapping" self.proxies = proxies for type, url in proxies.items(): + type = type.lower() setattr(self, '%s_open' % type, lambda r, proxy=url, type=type, meth=self.proxy_open: meth(r, proxy, type)) |
