Browse Source

Remove check for is_xhr

pull/2858/head
Jonathan Como 7 years ago
parent
commit
9912cc1652
  1. 2
      flask/json.py

2
flask/json.py

@ -295,7 +295,7 @@ def jsonify(*args, **kwargs):
indent = None
separators = (',', ':')
if current_app.config['JSONIFY_PRETTYPRINT_REGULAR'] and not request.is_xhr:
if current_app.config['JSONIFY_PRETTYPRINT_REGULAR']:
indent = 2
separators = (', ', ': ')

Loading…
Cancel
Save