Skip to content

Commit

Permalink
Follow redirects when talking to FASJSON
Browse files Browse the repository at this point in the history
Signed-off-by: Aurélien Bompard <[email protected]>
  • Loading branch information
abompard committed Oct 9, 2024
1 parent 2d4f559 commit fbd0349
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions webhook_to_fedora_messaging/fasjson.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ def api_url(self) -> str:

async def get(self, url: str, **kwargs) -> Any:
"""Query the API for a single result."""
kwargs["follow_redirects"] = True
response = await self.client.get(url, **kwargs)
response.raise_for_status()
return response.json()
Expand Down

0 comments on commit fbd0349

Please sign in to comment.