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

Allow Content-Type to contain 'charset=UTF-8' in POST requests #594

Open
jean-luc opened this issue Oct 11, 2019 · 0 comments
Open

Allow Content-Type to contain 'charset=UTF-8' in POST requests #594

jean-luc opened this issue Oct 11, 2019 · 0 comments

Comments

@jean-luc
Copy link

Expected behavior

When making a POST requst – for example when authenticating via /token – API should should accept the request even if charset=UTF-8 is present in the Content-Type header.

For example "Content-Type: application/json;charset=UTF-8"

Actual behavior

API throws an Invalid Credentials error if Content-Type include charset=UTF-8. Common frontend libraries like Axios append charset to Content-Type in POST requests by default.

@jean-luc jean-luc changed the title Allow "Content-Type: application/json;charset=UTF-8" in POST requests Allow Content-Type to contain 'charset=UTF-8' in POST requests Oct 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants