diff --git a/lib/galaxy/webapps/galaxy/api/__init__.py b/lib/galaxy/webapps/galaxy/api/__init__.py index c31b2175c090..b2dce8d7a876 100644 --- a/lib/galaxy/webapps/galaxy/api/__init__.py +++ b/lib/galaxy/webapps/galaxy/api/__init__.py @@ -183,9 +183,7 @@ def base(self) -> str: @property def host(self) -> str: - client = self.__request.client - assert client is not None - return str(client.host) + return self.__request.base_url.netloc class GalaxyASGIResponse(GalaxyAbstractResponse):