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
FWIW, somebody would need to go down the rabbit hole to figure out the effect of changing the if-clause to judge whether it's correct. I simply don't remember why exactly I've structured the runtime check like this it seems like I didn't document this specific bit in c29e5fb or #5992.
FWIW code on master and 3.9 branch is simpler — it doesn't have a non-starttls() path due to Python 3.6 support being dropped (btw @Dreamsorcerer — it looks like aiohttp3.9 still lists py3.6 in trove classifiers for some reason).
Looking into this more, it seems like the proposed conditional clause is correct. Feel free to send a PR.
Also, it'd be nice to have the integration tests fixed to get rid of the xfails. Maybe you or somebody from @aio-libs/triagers would like to take a look...
Describe the bug
When an HTTPS url is access through a plain HTTP proxy, function
_warn_about_tls_in_tls
is called, providing misleading informationIn version 3.8.3, code is https://github.com/aio-libs/aiohttp/blob/v3.8.3/aiohttp/connector.py#L1247-L1249
Shouldn't it be something like this?
Or even passing
proxy_req
to_warn_about_tls_in_tls
and let the function decideTo Reproduce
Expected behavior
It should not emit a warning
Logs/tracebacks
Python Version
aiohttp Version
multidict Version
yarl Version
OS
Ubuntu Linux
Related component
Client
Additional context
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: