未验证 提交 3e88650e 编写于 作者: X Xu Jingxin 提交者: GitHub

fix(xjx): test failed when using system proxy (#79)

上级 34479156
......@@ -48,6 +48,7 @@ class HttpEngine:
self.__base_url = URLObject().with_scheme('https' if https else 'http') \
.with_hostname(host).with_port(port).add_path(path or '')
self.__session = requests.session()
self.__session.trust_env = False
# noinspection PyMethodMayBeStatic
def _data_process(self, data: Optional[Mapping[str, Any]] = None) -> Mapping[str, Any]:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册