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
Currently we have InsecureRequestWarning which is emitted when an HTTPSConnection isn't verified (for example, when verification is disabled). Now that we have HTTPConnection.proxy_is_verified we can detect when the proxy.scheme is https but the proxy connection isn't verified.
Perhaps the warning should be something like InsecureProxyWarning?
The text was updated successfully, but these errors were encountered:
Hey, I was taking a look at this and found that when proxy_scheme is HTTPS and the proxy is not verified, we get an InsecureRequestWarning instead of an InsecureProxyWarning. We can throw a warning when an insecure proxy is being used here - https://github.com/urllib3/urllib3/blob/main/src/urllib3/connectionpool.py#L1084 by adding appropriate checks.
Currently we have
InsecureRequestWarning
which is emitted when an HTTPSConnection isn't verified (for example, when verification is disabled). Now that we haveHTTPConnection.proxy_is_verified
we can detect when theproxy.scheme
ishttps
but the proxy connection isn't verified.Perhaps the warning should be something like
InsecureProxyWarning
?The text was updated successfully, but these errors were encountered: