summary refs log tree commit diff
path: root/synapse/http/additional_resource.py
diff options
context:
space:
mode:
authorRichard van der Hoff <1389908+richvdh@users.noreply.github.com>2018-05-10 15:26:53 +0100
committerGitHub <noreply@github.com>2018-05-10 15:26:53 +0100
commit7b411007e6558d5be835257e52a7479a375b027c (patch)
treed7c6f45ee742673f80fd88af9e7eb5a4e6b46ec1 /synapse/http/additional_resource.py
parentMerge pull request #3199 from matrix-org/erikj/pagination_sync (diff)
parentRemove redundant request_handler decorator (diff)
downloadsynapse-7b411007e6558d5be835257e52a7479a375b027c.tar.xz
Merge pull request #3203 from matrix-org/rav/refactor_request_handler
Refactor request handling wrappers
Diffstat (limited to 'synapse/http/additional_resource.py')
-rw-r--r--synapse/http/additional_resource.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/http/additional_resource.py b/synapse/http/additional_resource.py
index 343e932cb1..d9e7f5dfb7 100644
--- a/synapse/http/additional_resource.py
+++ b/synapse/http/additional_resource.py
@@ -13,7 +13,7 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-from synapse.http.server import wrap_request_handler
+from synapse.http.server import wrap_json_request_handler
 from twisted.web.resource import Resource
 from twisted.web.server import NOT_DONE_YET
 
@@ -50,6 +50,6 @@ class AdditionalResource(Resource):
         self._async_render(request)
         return NOT_DONE_YET
 
-    @wrap_request_handler
+    @wrap_json_request_handler
     def _async_render(self, request):
         return self._handler(request)