summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--searx/webapp.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/webapp.py b/searx/webapp.py
index 06f246620..7f1621a6a 100644
--- a/searx/webapp.py
+++ b/searx/webapp.py
@@ -624,7 +624,7 @@ def preferences():
resp.set_cookie('method', method, max_age=cookie_max_age)
- resp.set_cookie('safesearch', safesearch, max_age=cookie_max_age)
+ resp.set_cookie('safesearch', str(safesearch), max_age=cookie_max_age)
resp.set_cookie('image_proxy', image_proxy, max_age=cookie_max_age)