Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions porter_sandbox/_async_base_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ def __init__(
timeout=config.timeout,
verify=verify,
headers=headers,
# Some endpoints redirect to the service that owns the data. httpx
# does not follow redirects by default, so callers would get the
# 3xx instead of the response.
follow_redirects=True,
)

async def __aenter__(self) -> _AsyncBaseClient:
Expand Down
4 changes: 4 additions & 0 deletions porter_sandbox/_base_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ def __init__(
timeout=config.timeout,
verify=verify,
headers=headers,
# Some endpoints redirect to the service that owns the data. httpx
# does not follow redirects by default, so callers would get the
# 3xx instead of the response.
follow_redirects=True,
)

def __enter__(self) -> _BaseClient:
Expand Down
Loading