Closed bemisguided closed 5 years ago
Just came back from holiday and will look at this PR this week. Before that can you rebase this on master? The travis build and coveralls should be working now and you should be able to see the results when pushing changes.
Sure, no problem. I've rebased. Let's see the CI magic do it's thing.
That should do it.
The Open API spec says that the parameters
name
property is case sensitive (https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#parameterObject), however, Express does not treat headers as case-sensitive and instead always shifts them to lowercase when adding them to thereq.headers
hash object.This means that defining a header with uppercase characters (which is how people generally define headers) will cause the request validation to fail. This PR request proposes that request headers be treated case-insensitive.