-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Missing content type with invalid json as query #519
Comments
Is it not being set within the GraphQL handler Line 323 in 3921636
UPDATE: Turns outs apply the following second suggestion blocks/breaks the Websocket connection within the Line 298 in 3921636
gqlgen/codegen/templates/server.gotpl Line 22 in 3921636
|
Update the GraphQL handler to set the Response Header to JSON ealier for error messages to be returned as JSON and not text/html. Fixes #519
Update the GraphQL handler to set the Response Header to JSON ealier for error messages to be returned as JSON and not text/html. Fixes #519 == Notes: - Add checks for JSON Content-Type checks in decode bad queries tests
Update the GraphQL handler to set the Response Header to JSON earlier for error messages to be returned as JSON and not text/html. Fixes #519 == Notes: - Add checks for JSON Content-Type checks in decode bad queries tests
Update the GraphQL handler to set the Response Header to JSON earlier for error messages to be returned as JSON and not text/html. Fixes #519 == Notes: - Add checks for JSON Content-Type checks in decode bad queries tests
Update the GraphQL handler to set the Response Header to JSON earlier for error messages to be returned as JSON and not text/html. Fixes #519 == Notes: - Add checks for JSON Content-Type checks in decode bad queries tests
Fix set header to JSON earlier in GraphQL response Update the GraphQL handler to set the Response Header to JSON earlier for error messages to be returned as JSON and not text/html. Fixes #519 ## Notes: - Add checks for JSON Content-Type checks in decode bad queries tests
Update the GraphQL handler to set the Response Header to JSON earlier for error messages to be returned as JSON and not text/html. Fixes 99designs#519 == Notes: - Add checks for JSON Content-Type checks in decode bad queries tests
…ent-type Fix set header to JSON earlier in GraphQL response Update the GraphQL handler to set the Response Header to JSON earlier for error messages to be returned as JSON and not text/html. Fixes 99designs#519 ## Notes: - Add checks for JSON Content-Type checks in decode bad queries tests
Expected Behaviour
curl --header "Content-Type: application/json" --request POST --data 'fff' http://localhost:8080/graphql
should return Content-Type application/json
Actual Behavior
Isn't setting the content type.
The text was updated successfully, but these errors were encountered: