Skip to content

Commit

Permalink
enable proxy support, fixes #8
Browse files Browse the repository at this point in the history
  • Loading branch information
mondbaron committed Nov 9, 2024
1 parent fda487f commit 5b68074
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "mvg"
version = "1.2.0"
version = "1.2.1"

description = "An unofficial interface to timetable information of the Münchner Verkehrsgesellschaft (MVG)."
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion src/mvg/mvgapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ async def __api(base: Base, endpoint: Endpoint | tuple[str, list[str]], args: di
url.set(query_params=args)

try:
async with aiohttp.ClientSession() as session, session.get(
async with aiohttp.ClientSession(trust_env=True) as session, session.get(
url.url,
) as resp:
if resp.status != HTTPStatus.OK:
Expand Down

0 comments on commit 5b68074

Please sign in to comment.