1
0
mirror of https://github.com/searxng/searxng.git synced 2024-11-04 20:30:11 +01:00

[fix] opensearch/rss content type

This commit is contained in:
asciimoo 2014-01-14 22:18:21 +01:00
parent e06d69ea60
commit 348187cff9

View File

@ -153,9 +153,7 @@ def index():
,number_of_results=len(results)
,base_url=get_base_url()
)
response = Response(response_rss, mimetype='application/xml')
response.headers.add('Content-Disposition', 'attachment;Filename=searx_-_{0}.xml'.format('_'.join(query.split())))
return response
return Response(response_rss, mimetype='text/xml')
return render('results.html'