From 3a8eafcc6b19b4b47b10534fbc683e4e3fbc064d Mon Sep 17 00:00:00 2001 From: Adam Tauber Date: Wed, 12 Aug 2015 15:49:48 +0200 Subject: [PATCH] [fix] cookie parameter type --- searx/webapp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/searx/webapp.py b/searx/webapp.py index 06f24662..7f1621a6 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)