Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

flask set mime type

from flask import Response
@app.route('/ajax_ddl')
def ajax_ddl():
    xml = 'foo'
    return Response(xml, mimetype='text/xml')
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #flask #set #mime #type
ADD COMMENT
Topic
Name
1+8 =