logo

searx

My custom branche(s) on searx, a meta-search engine
commit: 52516dab97143c83bd4e0226a960daf22fdc0031
parent: 5e358ea9a9c3c5d9c90530892639d1fe82cfb40f
Author: asciimoo <asciimoo@gmail.com>
Date:   Wed, 23 Oct 2013 21:45:00 +0200

[enh] valid json content type

Diffstat:

Msearx/webapp.py2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/searx/webapp.py b/searx/webapp.py @@ -82,7 +82,7 @@ def index(): results = search(query, request, selected_categories) if request_data.get('format') == 'json': # TODO HTTP headers - return json.dumps({'query': query, 'results': results}) + return Response(json.dumps({'query': query, 'results': results}), mimetype='application/json') template = render('results.html' ,results=results ,q=query.decode('utf-8')