diff options
| author | Adam Tauber <asciimoo@gmail.com> | 2015-03-16 12:48:52 +0100 |
|---|---|---|
| committer | Adam Tauber <asciimoo@gmail.com> | 2015-03-16 12:48:52 +0100 |
| commit | b8e9f5105cd2a2f42850029daa3567116891a8e7 (patch) | |
| tree | dce3dca892f7892ac862d52c50f3bb0bc14cd41c | |
| parent | a57a011e9491d68db511d611921f4b02a3a5974d (diff) | |
| parent | 7004de6aa77dd57b5c71df8373ce19f8e3b1bc9e (diff) | |
Merge pull request #274 from ldidry/fix-271
Fixes #271
| -rw-r--r-- | searx/webapp.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/searx/webapp.py b/searx/webapp.py index 6e7c8e7da..6a5387122 100644 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -687,6 +687,10 @@ Disallow: /preferences @app.route('/opensearch.xml', methods=['GET']) def opensearch(): method = 'post' + + if request.cookies.get('method', 'POST') == 'GET': + method = 'get' + # chrome/chromium only supports HTTP GET.... if request.headers.get('User-Agent', '').lower().find('webkit') >= 0: method = 'get' |