{"action":"created","issue":{"url":"https://api.github.com/repos/requests/requests/issues/4579","repository_url":"https://api.github.com/repos/requests/requests","labels_url":"https://api.github.com/repos/requests/requests/issues/4579/labels{/name}","comments_url":"https://api.github.com/repos/requests/requests/issues/4579/comments","events_url":"https://api.github.com/repos/requests/requests/issues/4579/events","html_url":"https://github.com/requests/requests/issues/4579","id":312457919,"number":4579,"title":"os.environ lowercase takes precedence over uppercase","user":{"login":"ZuZuD","id":19931768,"avatar_url":"https://avatars1.githubusercontent.com/u/19931768?v=4","gravatar_id":"","url":"https://api.github.com/users/ZuZuD","html_url":"https://github.com/ZuZuD","followers_url":"https://api.github.com/users/ZuZuD/followers","following_url":"https://api.github.com/users/ZuZuD/following{/other_user}","gists_url":"https://api.github.com/users/ZuZuD/gists{/gist_id}","starred_url":"https://api.github.com/users/ZuZuD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZuZuD/subscriptions","organizations_url":"https://api.github.com/users/ZuZuD/orgs","repos_url":"https://api.github.com/users/ZuZuD/repos","events_url":"https://api.github.com/users/ZuZuD/events{/privacy}","received_events_url":"https://api.github.com/users/ZuZuD/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-04-09T09:29:40Z","updated_at":"2018-05-20T19:17:16Z","closed_at":"2018-05-20T19:17:16Z","author_association":"NONE","body":"I wonder if there is a specific reason for the lowercase http_proxy to take precedence over its uppercase version (same behavior for the other os.environ). The convention is to use uppercase for environment variables and setting both could potentially lead users to unexpected behavior.\r\n\r\nhttps://github.com/requests/requests/blob/master/requests/utils.py#L699\r\n\r\nCan someone give me the original reason why things have been done like this?\r\n\r\nThanks!\r\n\r\n## System Information\r\n\r\n    $ python -m requests.help\r\n{\r\n  \"chardet\": {\r\n    \"version\": \"3.0.4\"\r\n  },\r\n  \"cryptography\": {\r\n    \"version\": \"\"\r\n  },\r\n  \"idna\": {\r\n    \"version\": \"2.6\"\r\n  },\r\n  \"implementation\": {\r\n    \"name\": \"CPython\",\r\n    \"version\": \"2.7.13\"\r\n  },\r\n  \"platform\": {\r\n    \"release\": \"4.9.85-38.58.amzn1.x86_64\",\r\n    \"system\": \"Linux\"\r\n  },\r\n  \"pyOpenSSL\": {\r\n    \"openssl_version\": \"\",\r\n    \"version\": null\r\n  },\r\n  \"requests\": {\r\n    \"version\": \"2.18.4\"\r\n  },\r\n  \"system_ssl\": {\r\n    \"version\": \"100020bf\"\r\n  },\r\n  \"urllib3\": {\r\n    \"version\": \"1.22\"\r\n  },\r\n  \"using_pyopenssl\": false\r\n}"},"comment":{"url":"https://api.github.com/repos/requests/requests/issues/comments/390504629","html_url":"https://github.com/requests/requests/issues/4579#issuecomment-390504629","issue_url":"https://api.github.com/repos/requests/requests/issues/4579","id":390504629,"user":{"login":"nateprewitt","id":5271761,"avatar_url":"https://avatars0.githubusercontent.com/u/5271761?v=4","gravatar_id":"","url":"https://api.github.com/users/nateprewitt","html_url":"https://github.com/nateprewitt","followers_url":"https://api.github.com/users/nateprewitt/followers","following_url":"https://api.github.com/users/nateprewitt/following{/other_user}","gists_url":"https://api.github.com/users/nateprewitt/gists{/gist_id}","starred_url":"https://api.github.com/users/nateprewitt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nateprewitt/subscriptions","organizations_url":"https://api.github.com/users/nateprewitt/orgs","repos_url":"https://api.github.com/users/nateprewitt/repos","events_url":"https://api.github.com/users/nateprewitt/events{/privacy}","received_events_url":"https://api.github.com/users/nateprewitt/received_events","type":"User","site_admin":false},"created_at":"2018-05-20T19:17:16Z","updated_at":"2018-05-20T19:17:16Z","author_association":"MEMBER","body":"Closing this out since #4583 was merged. Thanks again @ZuZuD!"}}
{"actor":{"display_login":"nateprewitt"}}