Merge pull request #2577 from pallets/jsonify-str

Use string concat in jsonify
This commit is contained in:
David Lord 2018-01-03 13:17:59 -08:00 committed by GitHub
commit 6788e0b4e0

View file

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