We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
https://github.com/graphql-python/graphql-django-view/blob/master/graphql_django_view/__init__.py#L93 will tell the user:
<HttpResponseBadRequest status_code=400, "application/json"> b'{"errors":[{"message":"Must provide query string."}]}'
if the content-type is unexpected. An informative exception should be raised instead, eg:
raise HttpError(HttpResponseBadRequest('Unrecognized content-type: text/plain. Please send one of [application/graphql, application/json, application/x-www-form-urlencoded, multipart/form-data]'))
The text was updated successfully, but these errors were encountered:
Makes sense!
Sorry, something went wrong.
No branches or pull requests
https://github.com/graphql-python/graphql-django-view/blob/master/graphql_django_view/__init__.py#L93 will tell the user:
if the content-type is unexpected. An informative exception should be raised instead, eg:
raise HttpError(HttpResponseBadRequest('Unrecognized content-type: text/plain. Please send one of [application/graphql, application/json, application/x-www-form-urlencoded, multipart/form-data]'))
The text was updated successfully, but these errors were encountered: