logo

searx

Unnamed repository; edit this file 'description' to name the repository.
commit: b8e9f5105cd2a2f42850029daa3567116891a8e7
parent: a57a011e9491d68db511d611921f4b02a3a5974d
Author: Adam Tauber <asciimoo@gmail.com>
Date:   Mon, 16 Mar 2015 12:48:52 +0100

Merge pull request #274 from ldidry/fix-271

Fixes #271

Diffstat:

searx/webapp.py | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git 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'