Answers for "flask set mime type"

-1

flask set mime type

from flask import Response
@app.route('/ajax_ddl')
def ajax_ddl():
    xml = 'foo'
    return Response(xml, mimetype='text/xml')
Posted by: Guest on October-09-2020

Python Answers by Framework

Browse Popular Code Answers by Language