forked from urllib3/urllib3
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use proxy_ssl_context as SSL ctx when forwarding
Use proxy_ssl_context when fowarding to both a HTTPS destination (which occurs when use_forwarding_for_https=True) and to a HTTP destination. Raise an exception if both a proxy_ssl_context and a ssl_context are provided when use_forwarding_for_https=True. Add tests to verify these cases and modify test_proxy_https_target_tls_error in test_proxy_poolmanager to account for this new behavior. Fixes urllib3#2577
- Loading branch information
Showing
3 changed files
with
82 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
The ``proxy_ssl_context`` argument for ``urllib3.ProxyManager`` will be used | ||
for the connection to the proxy when the connection is forwarded, either because | ||
``use_forwarding_for_https`` is set to ``True`` or because the target is a HTTP destination. | ||
Previously, ``proxy_ssl_context`` was not used in these situations. If ``ssl_context`` | ||
was passed as a keyword argument, it was used instead. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters