From c771978acfc6568b18805e6ac7de411c62c5a53f Mon Sep 17 00:00:00 2001 From: Juan Carlos Date: Thu, 30 May 2024 17:05:43 -0300 Subject: [PATCH 1/2] Add follow_redirects=True --- supabase_functions/_sync/functions_client.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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, From 342fb0f6ed0b8e2b84908ffabef86e0eff72b8c9 Mon Sep 17 00:00:00 2001 From: Juan Carlos Date: Thu, 30 May 2024 17:05:50 -0300 Subject: [PATCH 2/2] Add follow_redirects=True --- supabase_functions/_async/functions_client.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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,