This commit is contained in:
Jakub Roztocil 2016-03-01 16:50:30 +08:00
parent 345f5a02a2
commit e83e554ffb

View File

@ -23,7 +23,7 @@ HTTPie is written in Python, and under the hood it uses the excellent
----- -----
|gitter| |pypi| |unix_build| |windows_build| |coverage| |pypi| |unix_build| |windows_build| |coverage| |gitter|
----- -----
@ -389,10 +389,9 @@ both of which can be overwritten:
You can use ``--json, -j`` to explicitly set ``Accept`` You can use ``--json, -j`` to explicitly set ``Accept``
to ``application/json`` regardless of whether you are sending data to ``application/json`` regardless of whether you are sending data
(it's a shortcut for setting the header via the usual header notation (it's a shortcut for setting the header via the usual header notation
``http url Accept:application/json``). ``http url Accept:application/json``). Additionally,
HTTPie will try to detect JSON responses even when the
Additionally, with the ``--json, -j`` option HTTPie tries to detect JSON ``Content-Type`` is incorrectly ``text/plain`` or unknown.
responses event when the ``Content-Type`` is ``text/plain`` or unknown.
Simple example: Simple example: