Skip to content

Commit bb851bf

Browse files
Follow redirects (#449)
1 parent bc2fc64 commit bb851bf

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

postgrest/_async/client.py

+1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ def create_session(
4848
base_url=base_url,
4949
headers=headers,
5050
timeout=timeout,
51+
follow_redirects=True,
5152
)
5253

5354
async def __aenter__(self) -> AsyncPostgrestClient:

postgrest/_sync/client.py

+1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ def create_session(
4848
base_url=base_url,
4949
headers=headers,
5050
timeout=timeout,
51+
follow_redirects=True,
5152
)
5253

5354
def __enter__(self) -> SyncPostgrestClient:

0 commit comments

Comments
 (0)