mirror of
https://github.com/shmilylty/OneForAll.git
synced 2026-08-26 12:57:50 +08:00
优化
This commit is contained in:
+1
-2
@@ -165,11 +165,10 @@ def request_callback(future, index, datas):
|
|||||||
resp, text = result
|
resp, text = result
|
||||||
datas[index]['reason'] = resp.reason
|
datas[index]['reason'] = resp.reason
|
||||||
datas[index]['status'] = resp.status
|
datas[index]['status'] = resp.status
|
||||||
|
datas[index]['request'] = 1
|
||||||
if resp.status == 400 or resp.status >= 500:
|
if resp.status == 400 or resp.status >= 500:
|
||||||
datas[index]['request'] = 0
|
|
||||||
datas[index]['alive'] = 0
|
datas[index]['alive'] = 0
|
||||||
else:
|
else:
|
||||||
datas[index]['request'] = 1
|
|
||||||
datas[index]['alive'] = 1
|
datas[index]['alive'] = 1
|
||||||
headers = resp.headers
|
headers = resp.headers
|
||||||
datas[index]['banner'] = utils.get_sample_banner(headers)
|
datas[index]['banner'] = utils.get_sample_banner(headers)
|
||||||
|
|||||||
Reference in New Issue
Block a user