From 49c1e07a86eaa6c908b787d05bd8cab57ff86bb6 Mon Sep 17 00:00:00 2001 From: Igor Date: Thu, 13 May 2021 09:01:57 +0200 Subject: [PATCH] Refactor `OpenHandlerController::handle()` (#1120) --- src/Controllers/OpenHandlerController.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/Controllers/OpenHandlerController.php b/src/Controllers/OpenHandlerController.php index 02cc3c61..5563c294 100644 --- a/src/Controllers/OpenHandlerController.php +++ b/src/Controllers/OpenHandlerController.php @@ -15,13 +15,7 @@ public function handle(Request $request) $openHandler = new OpenHandler($this->debugbar); $data = $openHandler->handle($request->input(), false, false); - return new Response( - $data, - 200, - [ - 'Content-Type' => 'application/json' - ] - ); + return response()->json($data); } /**