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 2bec58fd6e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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']
)