This reverts commit d16899dd46b45faaf724eded7d13dcb6e7e8beaf.
Reason:
I'm not sure why this was necessary in the first place, but this commit: https://github.com/kennethreitz/requests/commit/0ba8c44260209ff518809a6b5b307d443e8dfe67 has been included in Requests since v0.12.1 in 2012, which transparently adds the same stuff but accounts for more cases. For example, it handles NO_PROXY correctly, and there are other places that allow for http_proxy instead of HTTP_PROXY to work. So this commit actually introduces some bugs, and in general just makes the API of requests a harder to use. I found this was redundant while trying to add a parameter to requests (specifically, payload=), so it's making a refactor (plus several character encoding / Py3K fixes) more difficult.
Whoops, please don't merge yet -- I just realized that this is also the commit which removed the requirement for urlopen which I've already removed. Couple minutes :smile:
This reverts commit d16899dd46b45faaf724eded7d13dcb6e7e8beaf.
Reason:
I'm not sure why this was necessary in the first place, but this commit: https://github.com/kennethreitz/requests/commit/0ba8c44260209ff518809a6b5b307d443e8dfe67 has been included in Requests since v0.12.1 in 2012, which transparently adds the same stuff but accounts for more cases. For example, it handles
NO_PROXY
correctly, and there are other places that allow forhttp_proxy
instead ofHTTP_PROXY
to work. So this commit actually introduces some bugs, and in general just makes the API of requests a harder to use. I found this was redundant while trying to add a parameter to requests (specifically,payload=
), so it's making a refactor (plus several character encoding / Py3K fixes) more difficult.