Skip to content

proxy converts headers to lowercase #534

@philjones88

Description

@philjones88

Scenario:

Angular2 app uses the Location header returned by our API. When developing using the webpack-dev-server and proxying to the proper server and it's API the header is parsed location but when accesses via the proper server (OWIN Self Host) it's Location and my code breaks due to the casing difference.

Normally it's pretty easy to code around this but I'm using Angular2 header's has('string here') method to check headers and I don't want to muddy my code.

Is there a setting to turn on to stop this conversation to lowercase?

Versions:

"webpack": "1.13.1",
"webpack-dev-server": "1.14.1",

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