diff --git a/supabase_functions/_async/functions_client.py b/supabase_functions/_async/functions_client.py index e019fdb..0617c2b 100644 --- a/supabase_functions/_async/functions_client.py +++ b/supabase_functions/_async/functions_client.py @@ -13,7 +13,9 @@ def __init__(self, url: str, headers: Dict): "User-Agent": f"supabase-py/functions-py v{__version__}", **headers, } - self._client = AsyncClient(base_url=self.url, headers=self.headers) + self._client = AsyncClient( + base_url=self.url, headers=self.headers, follow_redirects=True + ) async def _request( self, diff --git a/supabase_functions/_sync/functions_client.py b/supabase_functions/_sync/functions_client.py index c9cdb50..dc4fb70 100644 --- a/supabase_functions/_sync/functions_client.py +++ b/supabase_functions/_sync/functions_client.py @@ -13,7 +13,9 @@ def __init__(self, url: str, headers: Dict): "User-Agent": f"supabase-py/functions-py v{__version__}", **headers, } - self._client = SyncClient(base_url=self.url, headers=self.headers) + self._client = SyncClient( + base_url=self.url, headers=self.headers, follow_redirects=True + ) def _request( self,