This commit is contained in:
g1879 2020-11-20 17:29:51 +08:00
parent 5aa3cc40d6
commit 4e197083f1

View File

@ -499,7 +499,7 @@ class SessionPage(object):
else:
# ----------------获取并设置编码开始-----------------
# 在headers中获取编码
content_type = r.headers.get('content-type')
content_type = r.headers.get('content-type').lower()
charset = re.search(r'charset[=: ]*(.*)?[;]', content_type)
if charset: