diff options
| author | Adam Tauber <asciimoo@gmail.com> | 2015-04-07 11:07:48 +0200 |
|---|---|---|
| committer | Adam Tauber <asciimoo@gmail.com> | 2015-04-07 11:07:48 +0200 |
| commit | 1184f45ca52f2b906587d089cbbb3d8cb16c954b (patch) | |
| tree | def6d24708a68c51558648af23df2a8efa48a092 /searx/webapp.py | |
| parent | 54f1bc0425355b54785da6e711babb881f4dd0d5 (diff) | |
[enh] reset default preferences
Diffstat (limited to 'searx/webapp.py')
| -rw-r--r-- | searx/webapp.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/searx/webapp.py b/searx/webapp.py index 6a5387122..eca68d271 100644 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -715,6 +715,14 @@ def favicon(): mimetype='image/vnd.microsoft.icon') +@app.route('/clear_cookies') +def clear_cookies(): + resp = make_response(redirect(url_for('index'))) + for cookie_name in request.cookies: + resp.delete_cookie(cookie_name) + return resp + + def run(): app.run( debug=settings['server']['debug'], |