Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Port "Allow providing credentials to HTTPS_PROXY (#9657)" from mainline #95

Merged
merged 2 commits into from
Mar 23, 2021

Conversation

anoadragon453
Copy link
Member

@anoadragon453 anoadragon453 commented Mar 22, 2021

This PR simply ports matrix-org/synapse#9657 to synapse-dinsic.

Addresses #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.
@anoadragon453 anoadragon453 changed the title Port "Allow providing credentials to HTTPS_PROXY (#9657)" Port "Allow providing credentials to HTTPS_PROXY (#9657)" from mainline Mar 22, 2021
@MatMaul MatMaul merged commit 0060eb3 into dinsic Mar 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants