Don't rely on X-Requested-With for pretty print json response (#2193)

* Don't rely on X-Requested-With for pretty print json response

* Fix test cases for pretty print json patch

* Fix gramma error in docs for pretty print json config

* Add changelog for JSONIFY_PRETTYPRINT_REGULAR
This commit is contained in:
Hsiaoming Yang 2017-03-07 10:09:46 +09:00 committed by GitHub
parent f5adb61b28
commit a7f1a21c12
6 changed files with 11 additions and 8 deletions

View file

@ -289,6 +289,8 @@ class TestJSON(object):
def test_json_key_sorting(self):
app = flask.Flask(__name__)
app.testing = True
app.debug = True
assert app.config['JSON_SORT_KEYS'] == True
d = dict.fromkeys(range(20), 'foo')