Browse Source

Merge pull request #2577 from pallets/jsonify-str

Use string concat in jsonify
pull/2566/merge
David Lord 7 years ago committed by GitHub
parent
commit
2bec58fd6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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