From f4e9f653fbe0b9f369c8440d52b8426433c97a8c Mon Sep 17 00:00:00 2001 From: Nivesh Krishna Date: Thu, 3 Nov 2022 20:09:27 +0000 Subject: [PATCH 1/2] send response in json for images --- searx/webapp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/searx/webapp.py b/searx/webapp.py index 2d5c780b6..55f786e6a 100755 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -619,7 +619,7 @@ def search(): # output_format output_format = request.form.get('format', 'html') - if output_format not in ['html', 'rss']: + if output_format not in ['html'. 'json', 'csv', 'rss']: output_format = 'html' # check if there is query (not None and not an empty string) -- GitLab From f9335e9115abc7f3dc1b70dfdd0344741ba1a932 Mon Sep 17 00:00:00 2001 From: Nivesh Krishna Date: Thu, 3 Nov 2022 20:14:51 +0000 Subject: [PATCH 2/2] Update webapp.py --- searx/webapp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/searx/webapp.py b/searx/webapp.py index 55f786e6a..884dd6529 100755 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -619,7 +619,7 @@ def search(): # output_format output_format = request.form.get('format', 'html') - if output_format not in ['html'. 'json', 'csv', 'rss']: + if output_format not in ['html', 'json', 'csv', 'rss']: output_format = 'html' # check if there is query (not None and not an empty string) -- GitLab