Skip to content

Commit 9809e0d

Browse files
authored
Allow Head redirects (#49)
1 parent ec376b6 commit 9809e0d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/obspec_utils/stores/_aiohttp.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,9 @@ async def _do_head_async(
582582
url = self._build_url(path)
583583
request_headers = {} if self._session else dict(self.headers)
584584

585-
async with session.head(url, headers=request_headers) as response:
585+
async with session.head(
586+
url, allow_redirects=True, headers=request_headers
587+
) as response:
586588
response.raise_for_status()
587589
return self._parse_meta_from_headers(path, dict(response.headers))
588590

0 commit comments

Comments
 (0)