Skip to content
This repository has been archived by the owner on Sep 22, 2024. It is now read-only.

Commit

Permalink
Redirects following fix
Browse files Browse the repository at this point in the history
I am very sorry
  • Loading branch information
megahomyak committed Nov 25, 2022
1 parent dd6826b commit 79314eb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions netschoolapi/netschoolapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down Expand Up @@ -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)

0 comments on commit 79314eb

Please sign in to comment.