Skip to content

proxyReq.setHeader doesn't seem to work #889

Open
@entropitor

Description

@entropitor

The example

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

from the readme doesn't seem to work. It just uses the header from the req (or leaves it out if the request header was empty).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions