Skip to content

Commit

Permalink
fix httpx
Browse files Browse the repository at this point in the history
  • Loading branch information
mastastny committed Dec 4, 2024
1 parent 9fa6c32 commit bb50eb5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions testsuite/httpx.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def __init__(
http2,
app,
endpoint: str = "sandbox_endpoint",
verify: bool = None,
verify: bool = False,
cert=None,
disable_retry_status_list: Iterable = (),
) -> None:
Expand All @@ -115,7 +115,7 @@ def _base_url(self) -> str:

def _ssl_context(self):
"""Create ssl context for httpx"""
return create_ssl_context(cert=self._cert, verify=self._verify, http2=self.http2, trust_env=True)
return create_ssl_context(cert=self._cert, verify=self._verify, trust_env=True)

def extend_connection_pool(self, maxsize: int):
"""
Expand Down Expand Up @@ -222,7 +222,7 @@ def __init__(
disable_retry_status_list: Iterable = (),
):
base_url = app.service.proxy.fetch()[endpoint]
ssl_context = create_ssl_context(cert=cert, verify=verify, http2=http2, trust_env=True)
ssl_context = create_ssl_context(cert=cert, verify=verify, trust_env=True)
super().__init__(base_url=base_url, verify=ssl_context, http2=http2)

self._app = app
Expand Down

0 comments on commit bb50eb5

Please sign in to comment.