去掉中括号

This commit is contained in:
shmilylty
2019-10-29 16:00:25 +08:00
parent c568f73b51
commit 55c4cf734a
+2 -2
View File
@@ -164,9 +164,9 @@ def request_callback(future, index, datas):
banner = str({'Server': headers.get('Server'),
'Via': headers.get('Via'),
'X-Powered-By': headers.get('X-Powered-By')})
datas[index]['banner'] = banner
datas[index]['banner'] = banner[1:-1]
datas[index]['title'] = get_title(text)
datas[index]['header'] = str(dict(headers))
datas[index]['header'] = str(dict(headers))[1:-1]
datas[index]['response'] = text
else:
datas[index]['reason'] = 'Something error'