Skip to content

Commit

Permalink
Fix incorrect request host in ASGI
Browse files Browse the repository at this point in the history
  • Loading branch information
davelopez committed Aug 18, 2023
1 parent 92138e9 commit 6f3e722
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/galaxy/webapps/galaxy/api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]:
Expand Down

0 comments on commit 6f3e722

Please sign in to comment.