mirror of
https://gitee.com/g1879/DrissionPage.git
synced 2024-12-10 04:00:23 +08:00
4.1.0.0b8修复小问题
This commit is contained in:
parent
d0d3fea3be
commit
c320028f15
@ -14,4 +14,4 @@ from ._pages.chromium_page import ChromiumPage
|
||||
from ._pages.mix_page import MixPage
|
||||
from ._pages.mix_page import MixPage as WebPage
|
||||
|
||||
__version__ = '4.1.0.0b7'
|
||||
__version__ = '4.1.0.0b8'
|
||||
|
@ -12,6 +12,7 @@ from re import sub
|
||||
from urllib.parse import urlparse, urljoin, urlunparse
|
||||
|
||||
from DataRecorder.tools import make_valid_name
|
||||
from requests.structures import CaseInsensitiveDict
|
||||
|
||||
|
||||
def get_ele_txt(e):
|
||||
@ -369,7 +370,7 @@ def format_headers(txt):
|
||||
:param txt: 从浏览器复制的原始文本格式headers
|
||||
:return: dict格式headers
|
||||
"""
|
||||
if isinstance(txt, dict):
|
||||
if isinstance(txt, (dict, CaseInsensitiveDict)):
|
||||
for k, v in txt.items():
|
||||
txt[k] = str(v)
|
||||
return txt
|
||||
|
@ -147,7 +147,7 @@ class MixPage(SessionPage, ChromiumPage, BasePage):
|
||||
@property
|
||||
def timeout(self):
|
||||
"""返回通用timeout设置"""
|
||||
return super()._timeout if self._mode == 's' else self.timeouts.base
|
||||
return self._timeout if self._mode == 's' else self.timeouts.base
|
||||
|
||||
def get(self, url, show_errmsg=False, retry=None, interval=None, timeout=None, **kwargs):
|
||||
"""跳转到一个url
|
||||
|
Loading…
x
Reference in New Issue
Block a user