mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-11-10 09:55:14 -05:00
For the content repo, don't just use homeserver.hostname as that might not include the port due to SRV.
This commit is contained in:
parent
9d86c8c7a6
commit
0c3b4a1f63
2 changed files with 10 additions and 1 deletions
|
|
@ -325,7 +325,9 @@ class ContentRepoResource(resource.Resource):
|
|||
|
||||
# FIXME (erikj): These should use constants.
|
||||
file_name = os.path.basename(fname)
|
||||
url = "http://%s/matrix/content/%s" % (self.hs.hostname, file_name)
|
||||
url = "http://%s/matrix/content/%s" % (
|
||||
self.hs.domain_with_port, file_name
|
||||
)
|
||||
|
||||
respond_with_json_bytes(request, 200,
|
||||
json.dumps({"content_token": url}),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue