Merge pull request #274 from ldidry/fix-271

Fixes #271
This commit is contained in:
Adam Tauber 2015-03-16 12:48:52 +01:00
commit b8e9f5105c
1 changed files with 4 additions and 0 deletions

View File

@ -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'