fix(connection): support absolute download urls for public data

This commit is contained in:
2026-06-11 21:04:28 +09:00
parent 428be1289c
commit 04c0003a61
4 changed files with 13 additions and 9 deletions
+2
View File
@@ -92,6 +92,8 @@ class MDRSConnection:
self.__cache.laboratories = laboratories
def __build_url(self, path: str) -> str:
if path.startswith("http://") or path.startswith("https://"):
return path
if self.url == "":
raise MissingConfigurationException("remote host is not configured")
return f"{self.url}/{path}"