Skip to content

Commit

Permalink
Follow redirects (#449)
Browse files Browse the repository at this point in the history
  • Loading branch information
juancarlospaco authored Jun 1, 2024
1 parent bc2fc64 commit bb851bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions postgrest/_async/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ def create_session(
base_url=base_url,
headers=headers,
timeout=timeout,
follow_redirects=True,
)

async def __aenter__(self) -> AsyncPostgrestClient:
Expand Down
1 change: 1 addition & 0 deletions postgrest/_sync/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ def create_session(
base_url=base_url,
headers=headers,
timeout=timeout,
follow_redirects=True,
)

def __enter__(self) -> SyncPostgrestClient:
Expand Down

0 comments on commit bb851bf

Please sign in to comment.