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

fix(Dgraph): Parse Content-Type in headers properly #6370

Merged
merged 2 commits into from Sep 8, 2020

Conversation

ajeetdsouza
Copy link
Contributor

@ajeetdsouza ajeetdsouza commented Sep 2, 2020

Fixes DGRAPH-2227.

A request sent to a query or mutation handler with the header Content-Type: application/json; charset=utf-8 fails even though it is perfectly valid. This PR fixes parsing of the Content-Type header.

Currently, I've added a check - charset, if defined, must be utf-8. We may or may not want to remove that check.


This change is Reviewable

Copy link
Contributor

@parasssh parasssh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor comment. Add UT. LGTM otherwise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants