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

documentation issue in README.md #819

Open
dale6john opened this issue May 2, 2015 · 0 comments
Open

documentation issue in README.md #819

dale6john opened this issue May 2, 2015 · 0 comments

Comments

@dale6john
Copy link

The example to create a proxy to rewrite headers didn't work for me. The documented:

proxy.on('proxyReq', function(proxyReq, req, res, options) {
proxyReq.setHeader('X-Special-Proxy-Header', 'foobar');
});

instead seems to work better as:

proxy.on('proxyReq', function(proxyReq, req, res, options) {
res.setHeader(header, "*");
});

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

No branches or pull requests

1 participant