Skip to content

Revert "Modifying requests to work with proxy"#96

Open
hut8 wants to merge 2 commits intoyask123:masterfrom
hut8:lb/revert-requests-proxy
Open

Revert "Modifying requests to work with proxy"#96
hut8 wants to merge 2 commits intoyask123:masterfrom
hut8:lb/revert-requests-proxy

Conversation

@hut8
Copy link
Contributor

@hut8 hut8 commented Feb 10, 2016

This reverts commit d16899d.

Reason:

I'm not sure why this was necessary in the first place, but this commit: kennethreitz/requests@0ba8c44 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.

@hut8
Copy link
Contributor Author

hut8 commented Feb 10, 2016

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 😄

@hut8
Copy link
Contributor Author

hut8 commented Feb 10, 2016

OK, fixed.

@hut8 hut8 force-pushed the lb/revert-requests-proxy branch from 48a7e43 to a3c87b4 Compare February 17, 2016 20:40
@hut8
Copy link
Contributor Author

hut8 commented Mar 23, 2016

Still waiting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant