Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Avoid prettifying json #16

Closed
guilbep opened this issue Apr 16, 2018 · 1 comment
Closed

Avoid prettifying json #16

guilbep opened this issue Apr 16, 2018 · 1 comment

Comments

@guilbep
Copy link

guilbep commented Apr 16, 2018

As we can see here: http://flask.pocoo.org/docs/0.12/api/

Today flask prettify the json output unless:

This function’s response will be pretty printed if it was not requested with X-Requested-With: XMLHttpRequest to simplify debugging unless the JSONIFY_PRETTYPRINT_REGULAR config parameter is set to false. Compressed (not pretty) formatting currently means no indents and no spaces after separators.

We don't want to pass that http header each time!

@ramnes
Copy link
Collaborator

ramnes commented Apr 16, 2018

See #10

@ramnes ramnes closed this as completed Apr 16, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants