Allow map uploader to follow redirects. Closes #123.

This commit is contained in:
Jack Kingsman
2026-03-29 18:15:10 -07:00
parent 659370e1eb
commit 20532f70a3
2 changed files with 5 additions and 1 deletions

View File

@@ -111,7 +111,10 @@ class MapUploadModule(FanoutModule):
self._seen: dict[str, int] = {}
async def start(self) -> None:
self._client = httpx.AsyncClient(timeout=httpx.Timeout(15.0))
self._client = httpx.AsyncClient(
timeout=httpx.Timeout(15.0),
follow_redirects=True,
)
self._last_error = None
self._seen.clear()

View File

@@ -64,6 +64,7 @@ class TestMapUploadLifecycle:
mod = _make_module()
await mod.start()
assert mod._client is not None
assert mod._client.follow_redirects is True
assert mod.status == "connected"
await mod.stop()