From 379365f739a095071c4589f019cd57734b0a97b7 Mon Sep 17 00:00:00 2001 From: Helen Kosova Date: Fri, 25 May 2018 11:55:15 +0300 Subject: [PATCH] Set JSONIFY_PRETTYPRINT_REGULAR=True to pretty-print JSON responses --- httpbin/core.py | 1 + 1 file changed, 1 insertion(+) diff --git a/httpbin/core.py b/httpbin/core.py index 0a00a82..1e0799d 100644 --- a/httpbin/core.py +++ b/httpbin/core.py @@ -55,6 +55,7 @@ tmpl_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'templates') app = Flask(__name__, template_folder=tmpl_dir) app.debug = bool(os.environ.get('DEBUG')) +app.config['JSONIFY_PRETTYPRINT_REGULAR'] = True app.add_template_global('HTTPBIN_TRACKING' in os.environ, name='tracking_enabled')