summary refs log tree commit diff
path: root/tests/replication/test_multi_media_repo.py
diff options
context:
space:
mode:
authorAndrew Morgan <1342360+anoadragon453@users.noreply.github.com>2021-03-23 14:35:38 +0000
committerGitHub <noreply@github.com>2021-03-23 15:35:38 +0100
commit0060eb332c307887ca0a911f91940de0cea2bdef (patch)
tree8ecf8912b7de30788a20b31af06786cbf0dfae29 /tests/replication/test_multi_media_repo.py
parentStabilise all knock-related unstable identifiers that would be in state (#96) (diff)
downloadsynapse-0060eb332c307887ca0a911f91940de0cea2bdef.tar.xz
Port "Allow providing credentials to HTTPS_PROXY (#9657)" from mainline (#95)
* 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.

* lint
Diffstat (limited to 'tests/replication/test_multi_media_repo.py')
0 files changed, 0 insertions, 0 deletions