Skip to content

Commit

Permalink
fix: pass trust_env kwarg to ClientSession (#1533)
Browse files Browse the repository at this point in the history
fixes #1530
  • Loading branch information
arithmetic1728 committed Jun 10, 2024
1 parent 440f171 commit 6c15c9a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion google/auth/transport/_aiohttp_requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,8 @@ async def request(
headers[key] = headers[key].decode("utf-8")

async with aiohttp.ClientSession(
auto_decompress=self._auto_decompress
auto_decompress=self._auto_decompress,
trust_env=kwargs.get("trust_env", False),
) as self._auth_request_session:
auth_request = Request(self._auth_request_session)
self._auth_request = auth_request
Expand Down

0 comments on commit 6c15c9a

Please sign in to comment.