Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proxy headers #121

Open
theArina opened this issue Mar 30, 2021 · 7 comments
Open

Proxy headers #121

theArina opened this issue Mar 30, 2021 · 7 comments
Labels
enhancement New feature or request. help wanted Extra attention is needed.

Comments

@theArina
Copy link

How can I add proxy headers to upstream proxy ?

@jancurn
Copy link
Member

jancurn commented Mar 30, 2021

I assume you'd like to add extra headers to the HTTP CONNECT method, right? Currently, this is not possible. See HandlerTunnelChain implementation, PRs welcome.

@theArina
Copy link
Author

@jancurn, I'll take a look at this, thanks.

@dmitryshelomanov
Copy link

@theArina has solution ?

@theArina
Copy link
Author

@dmitryshelomanov, yeah, we made a fork. take a look, but we also added some enrichments that we needed.

@dmitryshelomanov
Copy link

@theArina any docs ?

@theArina
Copy link
Author

@dmitryshelomanov, for a fork ?

@theArina
Copy link
Author

@dmitryshelomanov, well, shortly you just kinda return this
{ requestAuthentication: false, upstreamProxyUrl, proxyHeaders };
instead of this
{ requestAuthentication: false, upstreamProxyUrl };
from the prepareRequestFunction
(but not necessarily)

@szmarczak szmarczak added enhancement New feature or request. help wanted Extra attention is needed. labels Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request. help wanted Extra attention is needed.
Projects
None yet
Development

No branches or pull requests

4 participants