-
Notifications
You must be signed in to change notification settings - Fork 764
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- ensure the proxy configuration is passed to `__GetElementTree()` - reuse @blacksponge fix for the `SSLTunnelConnection` class - add `test_ssl_tunnelwith_cert_file` test to validate that `cert_file` and `key_file` are passed as expected. The patch adds a new `HTTPProxyConnection` class to handle the `CONNECT` based proxies. The patch does not touch the `SSLTunnelConnection` class. Both are really difference, and I think it's a better approach. To summarize, if the user set `sslProxyPath`, we use the original method, if instead `httpProxyHost` is set, we use the new class. Both should not be used at the same time. closes: #620 closes: #567 closes: #198
- Loading branch information
Showing
6 changed files
with
150 additions
and
39 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
tox | ||
testtools>=0.9.34 | ||
vcrpy<2 | ||
mock |
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,32 @@ | ||
interactions: | ||
- request: | ||
body: null | ||
headers: {} | ||
method: GET | ||
uri: https://my-http-proxy:8080/ | ||
response: | ||
body: | ||
string: "bla" | ||
headers: | ||
Connection: | ||
- Keep-Alive | ||
Content-Length: | ||
- '3' | ||
Content-Security-Policy: | ||
- block-all-mixed-content | ||
Content-Type: | ||
- text/html | ||
Date: | ||
- Wed, 26 Jun 2019 20:49:55 GMT | ||
Strict-Transport-Security: | ||
- max-age=31536000 | ||
X-Content-Type-Options: | ||
- nosniff | ||
X-Frame-Options: | ||
- DENY | ||
X-XSS-Protection: | ||
- '1' | ||
status: | ||
code: 200 | ||
message: OK | ||
version: 1 |
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