diff options
author | Cqoicebordel <Cqoicebordel@users.noreply.github.com> | 2015-01-19 21:23:22 +0100 |
---|---|---|
committer | Cqoicebordel <Cqoicebordel@users.noreply.github.com> | 2015-01-19 21:23:22 +0100 |
commit | 1a24fd9c5205112d855be1a3e5d450b39baa22fc (patch) | |
tree | 1aa4d60c8ce9d44f372ca8c24a88dd05c798f2ec /searx/webapp.py | |
parent | b01b95194ee3c25cbe9e915f1c188726ba2db7f2 (diff) | |
download | searxng-1a24fd9c5205112d855be1a3e5d450b39baa22fc.tar.gz searxng-1a24fd9c5205112d855be1a3e5d450b39baa22fc.zip |
Add cookies to every requests
Diffstat (limited to 'searx/webapp.py')
-rw-r--r-- | searx/webapp.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/searx/webapp.py b/searx/webapp.py index f04d9276a..ca681f0aa 100644 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -292,6 +292,7 @@ def index(): if not request.args and not request.form: return render( 'index.html', + cookies=request.cookies, ) try: @@ -299,6 +300,7 @@ def index(): except: return render( 'index.html', + cookies=request.cookies, ) search.results, search.suggestions,\ @@ -387,6 +389,7 @@ def index(): answers=search.answers, infoboxes=search.infoboxes, theme=get_current_theme_name(), + cookies=request.cookies, favicons=global_favicons[themes.index(get_current_theme_name())] ) @@ -396,6 +399,7 @@ def about(): """Render about page""" return render( 'about.html', + cookies=request.cookies, ) @@ -615,6 +619,7 @@ def stats(): return render( 'stats.html', stats=stats, + cookies=request.cookies, ) |