1
0
mirror of https://github.com/httpie/cli.git synced 2024-11-24 08:22:22 +02:00
httpie-cli/tests
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
..
client_certs Quieten ssl tests (#952) 2020-08-06 22:24:03 +02:00
fixtures Fix XML formatter tests 2021-09-01 10:28:03 +02:00
utils Move example URL in a global variable for tests 2021-09-01 16:52:10 +02:00
__init__.py Use relative imports (#1057) 2021-05-05 14:13:39 +02:00
conftest.py Minor clean-up (#1078) 2021-05-29 12:06:06 +02:00
README.md Switch from reStructuredText to Markdown and add docs/ (#1139) 2021-09-06 17:36:13 +02:00
test_auth_plugins.py Modernize the code base with f-strings in tests (#1069) 2021-05-26 14:09:38 +02:00
test_auth.py Use relative imports (#1057) 2021-05-05 14:13:39 +02:00
test_binary.py Use relative imports (#1057) 2021-05-05 14:13:39 +02:00
test_cli.py Uniformize UTF-8 naming (#1115) 2021-08-05 20:58:43 +02:00
test_compress.py Add --raw to allow specifying the raw request body as an alternative to stdin (#1062) 2021-05-24 14:29:54 +02:00
test_config.py Uniformize UTF-8 naming (#1115) 2021-08-05 20:58:43 +02:00
test_cookie.py Add internal support for file-like object responses to improve adapter plugin support (#1094) 2021-07-06 21:00:06 +02:00
test_defaults.py Add --raw to allow specifying the raw request body as an alternative to stdin (#1062) 2021-05-24 14:29:54 +02:00
test_downloads.py Uniformize UTF-8 naming (#1115) 2021-08-05 20:58:43 +02:00
test_errors.py Use relative imports (#1057) 2021-05-05 14:13:39 +02:00
test_exit_status.py Use relative imports (#1057) 2021-05-05 14:13:39 +02:00
test_httpie.py Rework __main__.py to follow best practices (#1124) 2021-08-06 16:57:19 +02:00
test_json.py Improve JSON output when there is leading data before the actual JSON body (#1130) 2021-09-21 11:15:43 +02:00
test_offline.py Add --raw to allow specifying the raw request body as an alternative to stdin (#1062) 2021-05-24 14:29:54 +02:00
test_output.py Fix XML formatter tests 2021-09-01 10:28:03 +02:00
test_redirects.py Skip tests that randomly fail on Windows in CI 2021-06-26 14:03:31 +02:00
test_regressions.py Modernize the code base with f-strings in tests (#1069) 2021-05-26 14:09:38 +02:00
test_sessions.py Fix handling of session files with Cookie: followed by other headers (#1127) 2021-08-16 14:50:46 +02:00
test_ssl.py Review OSError exceptions handling (#1080) 2021-05-31 10:10:41 +02:00
test_stream.py Move example URL in a global variable for tests 2021-09-01 16:52:10 +02:00
test_tokens.py Final touches for #1088 (#1091) 2021-06-15 14:48:44 +02:00
test_transport_plugin.py Add internal support for file-like object responses to improve adapter plugin support (#1094) 2021-07-06 21:00:06 +02:00
test_unicode.py Uniformize UTF-8 naming (#1115) 2021-08-05 20:58:43 +02:00
test_uploads.py Uniformize UTF-8 naming (#1115) 2021-08-05 20:58:43 +02:00
test_windows.py Fix several issues found with flake8 (#1081) 2021-06-01 14:46:58 +02:00
test_xml.py Move example URL in a global variable for XML tests 2021-09-01 16:56:23 +02:00

HTTPie Test Suite

Please see CONTRIBUTING for contribution and testing guidelines.