Skip to content

Commit

Permalink
Set JSONIFY_PRETTYPRINT_REGULAR=True to pretty-print JSON responses
Browse files Browse the repository at this point in the history
  • Loading branch information
hkosova committed May 25, 2018
1 parent 4163deb commit 379365f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions httpbin/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ def jsonify(*args, **kwargs):

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

Expand Down

0 comments on commit 379365f

Please sign in to comment.