Skip to content

Commit

Permalink
Merge pull request #16574 from davelopez/23.0_fix_asgi_request_host
Browse files Browse the repository at this point in the history
[23.0] Fix incorrect ASGI request host
  • Loading branch information
mvdbeek authored Aug 18, 2023
2 parents 92138e9 + 6f3e722 commit b44d8e2
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 b44d8e2

Please sign in to comment.