httpie-cli/httpie
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
..
cli Change default XML indent to 2 spaces 2021-08-31 22:52:16 +02:00
output Improve JSON output when there is leading data before the actual JSON body (#1130) 2021-09-21 11:15:43 +02:00
plugins Added support for XML formatting (#1129) 2021-08-31 22:49:53 +02:00
__init__.py Bump the version to 2.6.0.dev0 (#1162) 2021-09-21 10:40:09 +02:00
__main__.py Rework __main__.py to follow best practices (#1124) 2021-08-06 16:57:19 +02:00
client.py Use UTF8 constant in FORM_CONTENT_TYPE as well 2021-08-05 21:00:17 +02:00
compat.py Python 2.7 support removal WIP 2019-08-29 08:53:56 +02:00
config.py Remove unused code in BasicConfig (#1123) 2021-08-06 18:04:08 +02:00
constants.py Uniformize UTF-8 naming (#1115) 2021-08-05 20:58:43 +02:00
context.py Uniformize UTF-8 naming (#1115) 2021-08-05 20:58:43 +02:00
core.py Tiny clean-up in program() (#1135) 2021-09-02 16:47:01 +02:00
downloads.py --download: Use time.monotonic() and rework code to prevent ZeroDivisionError specific handling (#1113) 2021-07-29 16:05:56 +02:00
models.py Uniformize UTF-8 naming (#1115) 2021-08-05 20:58:43 +02:00
sessions.py Fix handling of session files with Cookie: followed by other headers (#1127) 2021-08-16 14:50:46 +02:00
ssl.py Request content type 2020-09-25 14:44:22 +02:00
status.py Cleanup 2019-12-02 00:58:10 +01:00
uploads.py Use relative imports (#1057) 2021-05-05 14:13:39 +02:00
utils.py Simplify get_content_type() (#1125) 2021-08-06 12:35:38 +02:00