From f7983ae96a5da9c7763ebd65947fb6032e2df36c Mon Sep 17 00:00:00 2001 From: David Lord Date: Wed, 3 Jan 2018 13:06:14 -0800 Subject: [PATCH] concat newline in jsonify ref pallets/werkzeug#1130 --- flask/json/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flask/json/__init__.py b/flask/json/__init__.py index 6559c1aa..6a10b737 100644 --- a/flask/json/__init__.py +++ b/flask/json/__init__.py @@ -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'] )