Skip to content
Snippets Groups Projects
Commit 2667f488 authored by Phil Höfer's avatar Phil Höfer
Browse files

Merge branch 'development' into 'master'

Development

See merge request !3
parents 8b8d9f75 0092cf7f
No related tags found
1 merge request!3Development
Pipeline #5753 passed
......@@ -22,12 +22,12 @@ 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');
}
}catch(\Exception $e) {
if ($retry < 1) {
if ($retry < 3) {
$this->search($request, $retry+1);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment