httpie-cli/httpie/output/formatters
Mickaël Schoentgen e6c5cd3e4b
Improve JSON output when there is leading data before the actual JSON body (#1130)
In some special cases, to prevent against Cross Site Script Inclusion (XSSI)
attacks, the JSON response body starts with a magic prefix line that must be
stripped before feeding the rest of the response body to the JSON parser.
Such prefix is now simply ignored from the parser but still printed in the
terminal.

* Fix Windows tests
2021-09-21 11:15:43 +02:00
..
__init__.py Converted built-in formatters to formatter plugins. 2014-05-12 19:12:39 +02:00
colors.py Improve JSON output when there is leading data before the actual JSON body (#1130) 2021-09-21 11:15:43 +02:00
headers.py Use relative imports (#1057) 2021-05-05 14:13:39 +02:00
json.py Improve JSON output when there is leading data before the actual JSON body (#1130) 2021-09-21 11:15:43 +02:00
xml.py Fix XML formatter tests 2021-09-01 10:28:03 +02:00