-
- Downloads
Allow providing credentials to HTTPS_PROXY (#9657)
Addresses https://github.com/matrix-org/synapse-dinsic/issues/70 This PR causes `ProxyAgent` to attempt to extract credentials from an `HTTPS_PROXY` env var. If credentials are found, a `Proxy-Authorization` header ([details](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Proxy-Authorization)) is sent to the proxy server to authenticate against it. The headers are *not* passed to the remote server. Also added some type hints.
Showing
- changelog.d/9657.feature 1 addition, 0 deletionschangelog.d/9657.feature
- synapse/http/connectproxyclient.py 70 additions, 26 deletionssynapse/http/connectproxyclient.py
- synapse/http/proxyagent.py 73 additions, 8 deletionssynapse/http/proxyagent.py
- tests/http/test_proxyagent.py 40 additions, 0 deletionstests/http/test_proxyagent.py
Loading
Please register or sign in to comment