mirror of
https://github.com/shmilylty/OneForAll.git
synced 2026-10-25 00:56:14 +08:00
typo
This commit is contained in:
+1
-1
@@ -230,7 +230,7 @@ def check_response(method, resp):
|
|||||||
if resp.status_code == 200 and resp.content:
|
if resp.status_code == 200 and resp.content:
|
||||||
return True
|
return True
|
||||||
logger.log('ALERT', f'{method} {resp.url} {resp.status_code} - '
|
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')
|
content_type = resp.headers.get('Content-Type')
|
||||||
if content_type and 'json' in content_type and resp.content:
|
if content_type and 'json' in content_type and resp.content:
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user