diff --git a/laa_court_data_api_app/internal/court_data_adaptor_client.py b/laa_court_data_api_app/internal/court_data_adaptor_client.py index 622a016..35b9131 100644 --- a/laa_court_data_api_app/internal/court_data_adaptor_client.py +++ b/laa_court_data_api_app/internal/court_data_adaptor_client.py @@ -9,7 +9,7 @@ from circuitbreaker import circuit logger = structlog.get_logger(__name__) -http_client = httpx.AsyncClient(http2=True, timeout=15.0) +http_client = httpx.AsyncClient(timeout=15.0) class CourtDataAdaptorClient: diff --git a/laa_court_data_api_app/internal/oauth_client.py b/laa_court_data_api_app/internal/oauth_client.py index 649f135..f278630 100644 --- a/laa_court_data_api_app/internal/oauth_client.py +++ b/laa_court_data_api_app/internal/oauth_client.py @@ -34,7 +34,7 @@ async def retrieve_token(self) -> TokenResponse: logger.debug("OAuth_Retrieving_token") if self.token is None or self.token_has_expired(): logger.debug("Token_expired_or_missing") - async with httpx.AsyncClient(base_url=self.settings.cda_endpoint, http2=True) as client: + async with httpx.AsyncClient(base_url=self.settings.cda_endpoint) as client: response = await client.post("/oauth/token", data=self.generate_params(self.settings)) if response.status_code == 200: logger.debug("Token_Retrieved_From_Service")