Skip to content

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

Merged
abernix merged 5 commits into
apollographql:masterfrom
namanmukund:patch-1
Nov 13, 2019
Merged

Don't parse empty extensions or variables as JSON#3501
abernix merged 5 commits into
apollographql:masterfrom
namanmukund:patch-1

Conversation

@namanmukund

Copy link
Copy Markdown
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
Copy Markdown

@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