forked from orbit-oss/flask
Some cleanups
This commit is contained in:
parent
51d7c8de7d
commit
8f1dada542
3 changed files with 3 additions and 4 deletions
|
|
@ -232,7 +232,7 @@ def jsonify(*args, **kwargs):
|
|||
"""
|
||||
indent = None
|
||||
if current_app.config['JSONIFY_PRETTYPRINT_REGULAR'] \
|
||||
and not request.is_xhr:
|
||||
and not request.is_xhr:
|
||||
indent = 2
|
||||
return current_app.response_class(dumps(dict(*args, **kwargs),
|
||||
indent=indent),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue