summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2015-04-21 16:43:58 +0100
committerMark Haines <mark.haines@matrix.org>2015-04-21 16:43:58 +0100
commit812a99100bb86e3a09b3e5739c849e55c74cf448 (patch)
treeda944231f7ec1198f1e10a1b67fcd98d8ee639be /synapse
parentCombine the request wrappers in rest/media/v1 and http/server into a single w... (diff)
downloadsynapse-812a99100bb86e3a09b3e5739c849e55c74cf448.tar.xz
Set a version_string in BaseMediaResource so that the request_handler wrapper works
Diffstat (limited to 'synapse')
-rw-r--r--synapse/rest/media/v1/base_resource.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/synapse/rest/media/v1/base_resource.py b/synapse/rest/media/v1/base_resource.py
index fc078fca82..edd4f78024 100644
--- a/synapse/rest/media/v1/base_resource.py
+++ b/synapse/rest/media/v1/base_resource.py
@@ -57,6 +57,7 @@ class BaseMediaResource(Resource):
         self.max_upload_size = hs.config.max_upload_size
         self.max_image_pixels = hs.config.max_image_pixels
         self.filepaths = filepaths
+        self.version_string = hs.version_string
         self.downloads = {}
 
     def _respond_404(self, request):