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

header names are supposed to be case insensitive #40

Closed
maciakm opened this issue Jul 8, 2019 · 1 comment
Closed

header names are supposed to be case insensitive #40

maciakm opened this issue Jul 8, 2019 · 1 comment

Comments

@maciakm
Copy link

maciakm commented Jul 8, 2019

right now the headers validation is case sensitive.
that includes security validation of http "Authentication" header
This makes it hard to use this library with frameworks like symfony that casts all header names to lowercase.

related RFC:
https://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.2

@maciakm
Copy link
Author

maciakm commented Jul 8, 2019

when I submitted this I already saw the resolution :)
it is not in this library responsibility to handle the case (in)sensitivity of headers.
I switched to ServerRequestImplementation that handles it properly and openapi-psr7-validator works as it should.

closing

@maciakm maciakm closed this as completed Jul 8, 2019
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