4.1.0.0b8修复小问题

This commit is contained in:
g1879 2024-07-17 00:00:49 +08:00
parent d0d3fea3be
commit c320028f15
3 changed files with 4 additions and 3 deletions

View File

@ -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'

View File

@ -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

View File

@ -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