On JSON requests, the JSON response should have Content-Type: application/json and the body of the response should be a JSON object.

This commit is contained in:
Jeffrey Finkelstein 2012-03-08 16:41:39 -05:00
parent 7ed3cba658
commit 9711fd4020
3 changed files with 66 additions and 4 deletions

View file

@ -8,6 +8,8 @@ Version 0.9
Relase date to be decided, codename to be chosen.
- The :func:`flask.Request.on_json_loading_failed` now returns a JSON formatted
response by default.
- The :func:`flask.url_for` function now can generate anchors to the
generated links.
- The :func:`flask.url_for` function now can also explicitly generate