-
-
Notifications
You must be signed in to change notification settings - Fork 31.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bpo-25068: urllib.request.ProxyHandler now lowercases the dict keys #13489
bpo-25068: urllib.request.ProxyHandler now lowercases the dict keys #13489
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @ZackerySpytz, LGTM :)
@@ -799,6 +799,7 @@ def __init__(self, proxies=None): | |||
assert hasattr(proxies, 'keys'), "proxies must be a mapping" | |||
self.proxies = proxies | |||
for type, url in proxies.items(): | |||
type = type.lower() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it worth adding this behavior change in https://docs.python.org/3/library/urllib.request.html#urllib.request.ProxyHandler with a versionchanged
directive note?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For what it's worth, I don't think that this change needs to be documented, but it would be nice to see what a core dev thinks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your PR
Thanks @ZackerySpytz for the PR, and @matrixise for merging it 🌮🎉.. I'm working now to backport this PR to: 3.8. |
GH-16107 is a backport of this pull request to the 3.8 branch. |
https://bugs.python.org/issue25068