Skip to content

Commit

Permalink
fix: explicitly allow redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
gadomski committed Jul 14, 2023
1 parent 21c2468 commit 5bbf7f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stac_asset/http_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ async def open_url(self, url: URL) -> AsyncIterator[bytes]:
Raises:
:py:class:`aiohttp.ClientResponseError`: Raised if the response is not OK
"""
async with self.session.get(url) as response:
async with self.session.get(url, allow_redirects=True) as response:
response.raise_for_status()
async for chunk, _ in response.content.iter_chunks():
yield chunk
Expand Down

0 comments on commit 5bbf7f2

Please sign in to comment.