summary refs log tree commit diff
path: root/synapse/rest/media/v1/download_resource.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2018-01-12 13:16:27 +0000
committerErik Johnston <erik@matrix.org>2018-01-12 13:16:27 +0000
commitdcc8eded4172670137b5dd9be1e4c70328cf85f7 (patch)
tree000bfa1b6b4261028510519ce1e6311f82db82fa /synapse/rest/media/v1/download_resource.py
parentMerge branch 'develop' of github.com:matrix-org/synapse into erikj/media_stor... (diff)
downloadsynapse-dcc8eded4172670137b5dd9be1e4c70328cf85f7.tar.xz
Add missing class var
Diffstat (limited to 'synapse/rest/media/v1/download_resource.py')
-rw-r--r--synapse/rest/media/v1/download_resource.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/rest/media/v1/download_resource.py b/synapse/rest/media/v1/download_resource.py
index 3443db91ca..fe7e17596f 100644
--- a/synapse/rest/media/v1/download_resource.py
+++ b/synapse/rest/media/v1/download_resource.py
@@ -34,7 +34,10 @@ class DownloadResource(Resource):
 
         self.media_repo = media_repo
         self.server_name = hs.hostname
+
+        # Both of these are expected by @request_handler()
         self.clock = hs.get_clock()
+        self.version_string = hs.version_string
 
     def render_GET(self, request):
         self._async_render_GET(request)