Skip to content

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