From 1aaa07361cec57a8e0ace5a404c488c22b5795a0 Mon Sep 17 00:00:00 2001 From: abbaslanbay Date: Tue, 7 Feb 2023 11:42:34 +0300 Subject: [PATCH] settings changed --- searx/settings.yml | 2 +- searx/webapp.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/searx/settings.yml b/searx/settings.yml index 81025d653..7b62d2a51 100644 --- a/searx/settings.yml +++ b/searx/settings.yml @@ -62,7 +62,7 @@ search: # remove format to deny access, use lower case. # formats: [html, csv, json, rss] formats: - - html + - json server: # If you change port, bind_address or base_url don't forget to rebuild diff --git a/searx/webapp.py b/searx/webapp.py index d9ca3941c..130eba74b 100755 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -658,8 +658,8 @@ def search(): if output_format not in OUTPUT_FORMATS: output_format = 'html' - if output_format not in settings['search']['formats']: - flask.abort(403) + # if output_format not in settings['search']['formats']: + # flask.abort(403) # check if there is query (not None and not an empty string) if not request.form.get('q'):