on master help sign in
Add cookies to every requests
1a24fd9Cqoicebordel
searx/webapp.py+5
@@ -292,6 +292,7 @@ def index():
292 if not request.args and not request.form:
292 if not request.args and not request.form:
293 return render(
293 return render(
294 'index.html',
294 'index.html',
295+ cookies=request.cookies,
295 )
296 )
296
297
297 try:
298 try:
@@ -299,6 +300,7 @@ def index():
299 except:
300 except:
300 return render(
301 return render(
301 'index.html',
302 'index.html',
303+ cookies=request.cookies,
302 )
304 )
303
305
304 search.results, search.suggestions,\
306 search.results, search.suggestions,\
@@ -387,6 +389,7 @@ def index():
387 answers=search.answers,
389 answers=search.answers,
388 infoboxes=search.infoboxes,
390 infoboxes=search.infoboxes,
389 theme=get_current_theme_name(),
391 theme=get_current_theme_name(),
392+ cookies=request.cookies,
390 favicons=global_favicons[themes.index(get_current_theme_name())]
393 favicons=global_favicons[themes.index(get_current_theme_name())]
391 )
394 )
392
395
@@ -396,6 +399,7 @@ def about():
396 """Render about page"""
399 """Render about page"""
397 return render(
400 return render(
398 'about.html',
401 'about.html',
402+ cookies=request.cookies,
399 )
403 )
400
404
401
405
@@ -615,6 +619,7 @@ def stats():
615 return render(
619 return render(
616 'stats.html',
620 'stats.html',
617 stats=stats,
621 stats=stats,
622+ cookies=request.cookies,
618 )
623 )
619
624
620
625