forked from orbit-oss/flask
Add JSONIFY_MIMETYPE configuration variable (#1728)
Allow jsonify responses' mimetype to be configured
This commit is contained in:
parent
0690ce18c2
commit
2bf477cfea
5 changed files with 16 additions and 1 deletions
|
|
@ -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']
|
||||
)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue