Browse Source

concat newline in jsonify

ref pallets/werkzeug#1130
pull/2577/head
David Lord 7 years ago
parent
commit
f7983ae96a
No known key found for this signature in database
GPG Key ID: 7A1C87E3F5BC42A8
  1. 2
      flask/json/__init__.py

2
flask/json/__init__.py

@ -264,7 +264,7 @@ def jsonify(*args, **kwargs):
data = args or kwargs data = args or kwargs
return current_app.response_class( 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'] mimetype=current_app.config['JSONIFY_MIMETYPE']
) )

Loading…
Cancel
Save