Skip to content

Commit ccb3f7f

Browse files
Follow redirects (#107)
1 parent b9523b8 commit ccb3f7f

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

supabase_functions/_async/functions_client.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ def __init__(self, url: str, headers: Dict):
1313
"User-Agent": f"supabase-py/functions-py v{__version__}",
1414
**headers,
1515
}
16-
self._client = AsyncClient(base_url=self.url, headers=self.headers)
16+
self._client = AsyncClient(
17+
base_url=self.url, headers=self.headers, follow_redirects=True
18+
)
1719

1820
async def _request(
1921
self,

supabase_functions/_sync/functions_client.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ def __init__(self, url: str, headers: Dict):
1313
"User-Agent": f"supabase-py/functions-py v{__version__}",
1414
**headers,
1515
}
16-
self._client = SyncClient(base_url=self.url, headers=self.headers)
16+
self._client = SyncClient(
17+
base_url=self.url, headers=self.headers, follow_redirects=True
18+
)
1719

1820
def _request(
1921
self,

0 commit comments

Comments
 (0)