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

Don't parse empty extensions or variables as JSON #3501

Merged
merged 5 commits into from
Nov 13, 2019

Conversation

namanmukund
Copy link
Contributor

If variables is an empty string than JSON.parse(variables) will throw an error.
So anyone sending a request with variables = '' will get an unnecessary error.

If variables is an empty string than JSON.parse(variables) will throw an error.
@apollo-cla
Copy link

@namanmukund: Thank you for submitting a pull request! Before we can merge it, you'll need to sign the Apollo Contributor License Agreement here: https://contribute.apollographql.com/

@abernix abernix changed the title Update runHttpQuery.ts Don't parse empty extensions or variables as JSON Nov 13, 2019
@abernix abernix merged commit 2728b9b into apollographql:master Nov 13, 2019
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants