Skip to content

documentation issue in README.md #819

@dale6john

Description

@dale6john

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, "*");
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions