From 0092cf7f07c7eb823149d5e424bc8b4cc6f88df4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Phil=20H=C3=B6fer?= <phil@suma-ev.de> Date: Mon, 9 Aug 2021 10:08:35 +0000 Subject: [PATCH] Update app/Http/Controllers/SearxProxy.php --- app/Http/Controllers/SearxProxy.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/SearxProxy.php b/app/Http/Controllers/SearxProxy.php index 3b9795f..af5af3b 100644 --- a/app/Http/Controllers/SearxProxy.php +++ b/app/Http/Controllers/SearxProxy.php @@ -22,7 +22,7 @@ class SearxProxy extends Controller curl_close($ch); if(json_decode($response) !== null){ - return response()->json(['hostname' => $host, json_decode($response)]); + return response()->json(['hostname' => $host, 'results' => json_decode($response)]); }else { throw new \Exception('invalid response'); } -- GitLab