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
Bypass hosts not used on HTTPSConnectionWithTimeout #160
Comments
Thanks, working on it. Irrelevant statistics question, do you use httplib2 with Python 3+? |
Yes, Python 3.6 Thank you for your prompt reply. |
Please, try this patch
|
You were right about the problem line, although it works properly in Python 2. Thanks for bringing this up, I added tests covering full relevant code path. Sorry for trouble. |
With this patch its working as expected, the proxy is no longer used. Thank you very much. |
@joaomsan please also try |
Hello,
I was investigating why a https request that i was doing was using proxy even though i added the host to bypass_hosts.
I found out the the method HTTPConnectionWithTimeout.connect does the following
line 1155
if self.proxy_info and self.proxy_info.isgood() and self.proxy_info.applies_to(self.host):
But the method HTTPSConnectionWithTimeout.connect does the following
line 1287
if self.proxy_info and self.proxy_info.isgood():
I think that the https connections are missing the .applies_to
The text was updated successfully, but these errors were encountered: