This commit is contained in:
Jing Ling
2020-05-13 18:32:34 +08:00
parent 68e7d6d76d
commit 9a0c4733dc
+1 -1
View File
@@ -230,7 +230,7 @@ def check_response(method, resp):
if resp.status_code == 200 and resp.content:
return True
logger.log('ALERT', f'{method} {resp.url} {resp.status_code} - '
f'{resp.reason} {len(resp.content)}')
f'{resp.reason} {len(resp.content)}')
content_type = resp.headers.get('Content-Type')
if content_type and 'json' in content_type and resp.content:
try: