diff --git a/netschoolapi/netschoolapi.py b/netschoolapi/netschoolapi.py index 3a3aaec..eefca32 100644 --- a/netschoolapi/netschoolapi.py +++ b/netschoolapi/netschoolapi.py @@ -132,7 +132,7 @@ async def _request_with_optional_relogin( follow_redirects=False): try: response = await self._wrapped_client.request( - requests_timeout, request + requests_timeout, request, follow_redirects ) except httpx.HTTPStatusError as http_status_error: if ( @@ -339,6 +339,7 @@ async def download_profile_picture( method="GET", url="users/photo", params={"at": self._access_token, "userId": user_id}, - ) + ), + follow_redirects=True, ) ).content)