forked from zaclys/searxng
		
	
						commit
						b8e9f5105c
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		|  | @ -687,6 +687,10 @@ Disallow: /preferences | ||||||
| @app.route('/opensearch.xml', methods=['GET']) | @app.route('/opensearch.xml', methods=['GET']) | ||||||
| def opensearch(): | def opensearch(): | ||||||
|     method = 'post' |     method = 'post' | ||||||
|  | 
 | ||||||
|  |     if request.cookies.get('method', 'POST') == 'GET': | ||||||
|  |         method = 'get' | ||||||
|  | 
 | ||||||
|     # chrome/chromium only supports HTTP GET.... |     # chrome/chromium only supports HTTP GET.... | ||||||
|     if request.headers.get('User-Agent', '').lower().find('webkit') >= 0: |     if request.headers.get('User-Agent', '').lower().find('webkit') >= 0: | ||||||
|         method = 'get' |         method = 'get' | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Adam Tauber
						Adam Tauber