You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I used aiohttp with proxy to fetch https resource, I always got only the front page of the requested domain, because aiohttp wrongly included domain in the eventual get request.
diff --git a/aiohttp/client_reqrep.py b/aiohttp/client_reqrep.py
index 33bd25ca..31c0ce93 100644
--- a/aiohttp/client_reqrep.py
+++ b/aiohttp/client_reqrep.py
@@ -472,7 +472,7 @@ class ClientRequest:
# - most common is origin form URI
if self.method == hdrs.METH_CONNECT:
path = '{}:{}'.format(self.url.raw_host, self.url.port)
- elif self.proxy and not self.ssl:
+ elif self.proxy and not self.ssl and not self.url.scheme == 'https':
path = str(self.url)
else:
path = self.url.raw_path
Not sure what would be the optimal test to separate proxied http requests from proxied https requests.
The text was updated successfully, but these errors were encountered:
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a [new issue] for related bugs.
If you feel like there's important points made in this discussion, please include those exceprts into that [new issue].
[new issue]: https://github.com/aio-libs/aiohttp/issues/new
Long story short
When I used aiohttp with proxy to fetch https resource, I always got only the front page of the requested domain, because aiohttp wrongly included domain in the eventual get request.
Expected behaviour
Actual behaviour
I located the issue to this commit:
3f283c6
And patched it locally with:
Not sure what would be the optimal test to separate proxied http requests from proxied https requests.
The text was updated successfully, but these errors were encountered: