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

Ignore charset when checking content type #32

Merged
merged 1 commit into from Aug 6, 2019

Conversation

machacekondra
Copy link
Contributor

Client can sent the content-type in following format:
Content-type: application/json; charset=utf-8
With current code, it failed, but it's legit content-type and should
pass.

This PR changes the code so it ignore the charset when checking the
content-type.

Client can sent the content-type in following format:

 Content-type: application/json; charset=utf-8

With current code, it failed, but it's legit content-type and should
pass.

This PR changes the code so it ignore the charset when checking the
content-type.
@jmolmo
Copy link
Collaborator

jmolmo commented Aug 5, 2019

LGTM

@jmolmo jmolmo merged commit 39fa99d into ansible:master Aug 6, 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

Successfully merging this pull request may close these issues.

None yet

2 participants