From 6f3e7228a89ae7a8e59898f21b90b7228dc6acaa 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 78651b18f09e..15fe9102b9a7 100644 --- a/lib/galaxy/webapps/galaxy/api/__init__.py +++ b/lib/galaxy/webapps/galaxy/api/__init__.py @@ -216,9 +216,7 @@ def url_path(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 @property def environ(self) -> MutableMapping[str, Any]: