mirror of
https://gitee.com/g1879/DrissionPage.git
synced 2024-12-10 04:00:23 +08:00
微调
This commit is contained in:
parent
5aa3cc40d6
commit
4e197083f1
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user