Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Searx Proxy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
open-source
Searx Proxy
Commits
2667f488
Commit
2667f488
authored
3 years ago
by
Phil Höfer
Browse files
Options
Downloads
Plain Diff
Merge branch 'development' into 'master'
Development See merge request
!3
parents
8b8d9f75
0092cf7f
Branches
2-implement-language-parameter
master
No related tags found
1 merge request
!3
Development
Pipeline
#5753
passed
3 years ago
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/Http/Controllers/SearxProxy.php
+2
-2
2 additions, 2 deletions
app/Http/Controllers/SearxProxy.php
with
2 additions
and
2 deletions
app/Http/Controllers/SearxProxy.php
+
2
−
2
View file @
2667f488
...
...
@@ -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
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment