concat newline in jsonify

ref pallets/werkzeug#1130
This commit is contained in:
David Lord 2018-01-03 13:06:14 -08:00
parent a43a439c7a
commit f7983ae96a
No known key found for this signature in database
GPG key ID: 7A1C87E3F5BC42A8

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