From cf1f4122eccebf2514d1553a5a2e9df50e61387f Mon Sep 17 00:00:00 2001 From: Ryan Barrett Date: Tue, 24 Oct 2017 07:30:33 -0700 Subject: [PATCH] log more json response bodies --- common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common.py b/common.py index 911713b..7eeb3a8 100644 --- a/common.py +++ b/common.py @@ -77,7 +77,7 @@ def _requests_fn(fn, url, parse_json=False, **kwargs): logging.info('Got %s headers:%s', resp.status_code, resp.headers) type = content_type(resp) if (type and type != 'text/html' and - (type.startswith('text/') or type.endswith('+json'))): + (type.startswith('text/') or type.endswith('+json') or type.endswith('/json'))): logging.info(resp.text) if resp.status_code // 100 in (4, 5):