This repository was archived by the owner on Sep 8, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,9 @@ def __init__(
2323 ):
2424 self ._url = url
2525 self ._headers = headers
26- self ._http_client = http_client or AsyncClient (verify = bool (verify ))
26+ self ._http_client = http_client or AsyncClient (
27+ verify = bool (verify ), follow_redirects = True
28+ )
2729
2830 async def __aenter__ (self ) -> Self :
2931 return self
Original file line number Diff line number Diff line change @@ -32,7 +32,9 @@ def __init__(
3232 self .url = url
3333 self .headers = headers
3434 self .cookie_options = cookie_options
35- self .http_client = http_client or SyncClient (verify = bool (verify ))
35+ self .http_client = http_client or SyncClient (
36+ verify = bool (verify ), follow_redirects = True
37+ )
3638
3739 def __enter__ (self ) -> SyncGoTrueAPI :
3840 return self
Original file line number Diff line number Diff line change @@ -23,7 +23,9 @@ def __init__(
2323 ):
2424 self ._url = url
2525 self ._headers = headers
26- self ._http_client = http_client or SyncClient (verify = bool (verify ))
26+ self ._http_client = http_client or SyncClient (
27+ verify = bool (verify ), follow_redirects = True
28+ )
2729
2830 def __enter__ (self ) -> Self :
2931 return self
You can’t perform that action at this time.
0 commit comments