mirror of
https://github.com/searxng/searxng.git
synced 2026-05-23 19:34:31 +02:00
[fix] redirect when saving preferences
Erroneously commit 87e4c4762 droped the 302 redirect.
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
+1
-1
@@ -813,7 +813,7 @@ def preferences():
|
|||||||
|
|
||||||
# save preferences
|
# save preferences
|
||||||
if request.method == 'POST':
|
if request.method == 'POST':
|
||||||
resp = make_response(url_for('index', _external=True))
|
resp = make_response(redirect(url_for('index', _external=True)))
|
||||||
try:
|
try:
|
||||||
request.preferences.parse_form(request.form)
|
request.preferences.parse_form(request.form)
|
||||||
except ValidationException:
|
except ValidationException:
|
||||||
|
|||||||
Reference in New Issue
Block a user