mirror of
https://github.com/httpie/cli.git
synced 2024-12-26 00:09:17 +01:00
f1cd289d51
Some JSON based formats like JSON Home Documents[1] don't use a '+json' suffix, but simply contain json in their MIME type. Also, some servers might use (outdated) types like 'application/x-json'. The JSON formatter can already handle those cases, but the highlighter was ignoring them. This commit will let the highlighter choose the JSON lexer if no other lexer could be found and the MIME subtype contains 'json' [1] http://tools.ietf.org/html/draft-nottingham-json-home-03 |
||
---|---|---|
.. | ||
fixtures | ||
fixtures.py | ||
README.rst | ||
test_auth.py | ||
test_binary.py | ||
test_cli.py | ||
test_defaults.py | ||
test_docs.py | ||
test_downloads.py | ||
test_exit_status.py | ||
test_httpie.py | ||
test_output.py | ||
test_regressions.py | ||
test_sessions.py | ||
test_stream.py | ||
test_unicode.py | ||
test_uploads.py | ||
test_windows.py | ||
utils.py |
HTTPie Test Suite ================= Please see `CONTRIBUTING`_. .. _CONTRIBUTING: https://github.com/jakubroztocil/httpie/blob/master/CONTRIBUTING.rst