given everything's apparently gone https:// by default for c-s, change this hardcoding...

paul/schema_breaking_changes
Matthew Hodgson 2014-09-01 23:28:43 +01:00
parent 399e004884
commit 68a04b9282
1 changed files with 5 additions and 1 deletions

View File

@ -325,7 +325,11 @@ class ContentRepoResource(resource.Resource):
# FIXME (erikj): These should use constants.
file_name = os.path.basename(fname)
url = "http://%s/_matrix/content/%s" % (
# FIXME: we can't assume what the public mounted path of the repo is
# ...plus self-signed SSL won't work to remote clients anyway
# ...and we can't assume that it's SSL anyway, as we might want to
# server it via the non-SSL listener...
url = "https://%s/_matrix/content/%s" % (
self.hs.domain_with_port, file_name
)