From e6d158f72c57ef2f27580fabd528a86e80681fb1 Mon Sep 17 00:00:00 2001 From: davelopez <46503462+davelopez@users.noreply.github.com> Date: Fri, 18 Aug 2023 11:32:07 +0200 Subject: [PATCH] Fix incorrect request host in ASGI --- lib/galaxy/webapps/galaxy/api/__init__.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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):