mirror of
https://github.com/kennethreitz/httpbin.git
synced 2026-06-05 06:46:16 +00:00
Merge pull request #468 from hkosova/pretty-print-json
Pretty-print JSON responses
This commit is contained in:
@@ -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')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user