summary refs log tree commit diff
diff options
context:
space:
mode:
authorWill Hunt <will@half-shot.uk>2018-07-18 14:22:21 +0100
committerWill Hunt <will@half-shot.uk>2018-07-18 14:22:21 +0100
commit3f520b20bd8fb22d82fc9249344fece8b5e314ad (patch)
treea00b051c4adf41434046e3432a24c060cb07b77b
parentCreate 3184.feature (diff)
downloadsynapse-3f520b20bd8fb22d82fc9249344fece8b5e314ad.tar.xz
wrapped
-rw-r--r--synapse/rest/media/v1/config_resource.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/rest/media/v1/config_resource.py b/synapse/rest/media/v1/config_resource.py
index 3fd0288425..2272e35b0c 100644
--- a/synapse/rest/media/v1/config_resource.py
+++ b/synapse/rest/media/v1/config_resource.py
@@ -15,7 +15,7 @@
 #
 from twisted.web.server import NOT_DONE_YET
 from twisted.web.resource import Resource
-from synapse.http.server import respond_with_json, respond_with_json_bytes
+from synapse.http.server import respond_with_json, respond_with_json_bytes, wrap_json_request_handler
 
 
 class MediaConfigResource(Resource):
@@ -28,6 +28,7 @@ class MediaConfigResource(Resource):
             "m.upload.size": config.max_upload_size,
         }
 
+    @wrap_json_request_handler
     def render_GET(self, request):
         respond_with_json(request, 200, self.limits_dict, send_cors=True)
         return NOT_DONE_YET