Skip to content

Commit

Permalink
Revert "Refactor OpenHandlerController::handle() (barryvdh#1120)" (b…
Browse files Browse the repository at this point in the history
…arryvdh#1183)

This reverts commit 49c1e07.
  • Loading branch information
barryvdh authored May 13, 2021
1 parent fb53831 commit 88fd9cf
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Controllers/OpenHandlerController.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,13 @@ public function handle(Request $request)
$openHandler = new OpenHandler($this->debugbar);
$data = $openHandler->handle($request->input(), false, false);

return response()->json($data);
return new Response(
$data,
200,
[
'Content-Type' => 'application/json'
]
);
}

/**
Expand Down

0 comments on commit 88fd9cf

Please sign in to comment.