Skip to content

Commit

Permalink
BUGFIX: Variables not decoded on application/json requests
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Carlino authored Jan 20, 2017
1 parent 1968e14 commit 83ae9b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function index(HTTPRequest $request)
$rawBody = $request->getBody();
$data = json_decode($rawBody ?: '', true);
$query = isset($data['query']) ? $data['query'] : null;
$variables = isset($data['variables']) ? $data['variables'] : null;
$variables = isset($data['variables']) ? json_decode($data['variables']) : null;
} else {
$query = $request->requestVar('query');
$variables = json_decode($request->requestVar('variables'), true);
Expand Down

0 comments on commit 83ae9b8

Please sign in to comment.