From 2bf297b19ffe00415f5d9b36d66dd6b24f5bb58d Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Mon, 12 Apr 2021 15:29:08 +0200 Subject: [PATCH] [fix] redirect when saving preferences Erroneously commit 87e4c4762 droped the 302 redirect. Signed-off-by: Markus Heiser --- searx/webapp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/searx/webapp.py b/searx/webapp.py index 072f140ca..8058c6cd0 100755 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -813,7 +813,7 @@ def preferences(): # save preferences if request.method == 'POST': - resp = make_response(url_for('index', _external=True)) + resp = make_response(redirect(url_for('index', _external=True))) try: request.preferences.parse_form(request.form) except ValidationException: