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

Non lowercase header validation #77

Open
juvaly opened this issue Feb 16, 2018 · 0 comments
Open

Non lowercase header validation #77

juvaly opened this issue Feb 16, 2018 · 0 comments

Comments

@juvaly
Copy link

juvaly commented Feb 16, 2018

When using this configuration:
validation: { headers: { 'x-app-key': { isRequired: true } } }

A request using the required field works fine:
curl -X POST -H "Content-Type: application/json" -H "x-app-key: 123123"

However, when trying to use uppercase letters in the header name:
validation: { headers: { 'X-app-key': { isRequired: true } } }

A similar request:
curl -X POST -H "Content-Type: application/json" -H "X-app-key: 123123"

Throws:
{"code":"InvalidArgument","message":"X-app-key (MISSING): Field is required"}

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