summary refs log tree commit diff
path: root/synapse/rest/room.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2014-12-10 14:49:52 +0000
committerErik Johnston <erik@matrix.org>2014-12-10 14:49:52 +0000
commitcabead6194c2946c2d05d6662c7ffe237d60291d (patch)
treed5cb38ed367389980a548645e360d862ad36ba7d /synapse/rest/room.py
parentFix bug when uploading state with empty state_key (diff)
downloadsynapse-cabead6194c2946c2d05d6662c7ffe237d60291d.tar.xz
Actually fix bug when uploading state with empty state_key
Diffstat (limited to 'synapse/rest/room.py')
-rw-r--r--synapse/rest/room.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/rest/room.py b/synapse/rest/room.py
index 22e1244e57..c526e9bc72 100644
--- a/synapse/rest/room.py
+++ b/synapse/rest/room.py
@@ -117,10 +117,10 @@ class RoomStateEventRestServlet(RestServlet):
                                   self.on_PUT_no_state_key)
 
     def on_GET_no_state_key(self, request, room_id, event_type):
-        return self.on_GET(request, room_id, event_type, None)
+        return self.on_GET(request, room_id, event_type, "")
 
     def on_PUT_no_state_key(self, request, room_id, event_type):
-        return self.on_PUT(request, room_id, event_type, None)
+        return self.on_PUT(request, room_id, event_type, "")
 
     @defer.inlineCallbacks
     def on_GET(self, request, room_id, event_type, state_key):