forked from Ponysearch/Ponysearch
[fix] opensearch/rss content type
This commit is contained in:
parent
e06d69ea60
commit
348187cff9
1 changed files with 1 additions and 3 deletions
|
@ -153,9 +153,7 @@ def index():
|
||||||
,number_of_results=len(results)
|
,number_of_results=len(results)
|
||||||
,base_url=get_base_url()
|
,base_url=get_base_url()
|
||||||
)
|
)
|
||||||
response = Response(response_rss, mimetype='application/xml')
|
return Response(response_rss, mimetype='text/xml')
|
||||||
response.headers.add('Content-Disposition', 'attachment;Filename=searx_-_{0}.xml'.format('_'.join(query.split())))
|
|
||||||
return response
|
|
||||||
|
|
||||||
|
|
||||||
return render('results.html'
|
return render('results.html'
|
||||||
|
|
Loading…
Reference in a new issue