forked from extern/httpie-cli
Cleanup
This commit is contained in:
parent
963b2746f5
commit
65081b2f12
@ -15,8 +15,8 @@ class JSONFormatter(FormatterPlugin):
|
|||||||
'javascript',
|
'javascript',
|
||||||
'text',
|
'text',
|
||||||
]
|
]
|
||||||
if (any(token in mime for token in maybe_json) or
|
if (self.kwargs['explicit_json'] or
|
||||||
self.kwargs['explicit_json']):
|
any(token in mime for token in maybe_json)):
|
||||||
try:
|
try:
|
||||||
obj = json.loads(body)
|
obj = json.loads(body)
|
||||||
except ValueError:
|
except ValueError:
|
||||||
|
Loading…
Reference in New Issue
Block a user