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

Allow to set extra request headers #60

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

matfiz
Copy link

@matfiz matfiz commented Nov 28, 2017

In my use case, I need to set custom request headers while proxying the request. I've added extra_headers option that accepts a hash of headers to be added to request headers.

So the following is possible:

reverse_proxy "/test", "http://example.com/", extra_headers: {"HTTP_FOO_BAR" => "baz"}

If you find it useful, I will add description to docs, before it will be merged.

@guemidiborhane
Copy link

why isn't this already merged? Huge thanks to @matfiz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants