Add JSONIFY_MIMETYPE configuration variable (#1728)

Allow jsonify responses' mimetype to be configured
This commit is contained in:
Steven Loria 2016-04-08 19:30:47 -03:00 committed by David Lord
parent 0690ce18c2
commit 2bf477cfea
5 changed files with 16 additions and 1 deletions

View file

@ -264,7 +264,7 @@ def jsonify(*args, **kwargs):
return current_app.response_class(
(dumps(data, indent=indent, separators=separators), '\n'),
mimetype='application/json'
mimetype=current_app.config['JSONIFY_MIMETYPE']
)