summary refs log tree commit diff
path: root/synapse/rest/media/v1
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2015-02-02 16:32:33 +0000
committerMark Haines <mark.haines@matrix.org>2015-02-02 16:32:33 +0000
commitf2eda123b78a7b61587db60d6c8995571a7eb7fb (patch)
tree8bda3115a826a94b0b85843308a1257d69beaa77 /synapse/rest/media/v1
parentSpell height more correctly (diff)
downloadsynapse-f2eda123b78a7b61587db60d6c8995571a7eb7fb.tar.xz
Fix setting identicon width and height
Diffstat (limited to 'synapse/rest/media/v1')
-rw-r--r--synapse/rest/media/v1/identicon_resource.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/rest/media/v1/identicon_resource.py b/synapse/rest/media/v1/identicon_resource.py
index 636e3a33c2..12d98e1774 100644
--- a/synapse/rest/media/v1/identicon_resource.py
+++ b/synapse/rest/media/v1/identicon_resource.py
@@ -41,8 +41,8 @@ class IdenticonResource(Resource):
 
     def render_GET(self, request):
         name = "/".join(request.postpath)
-        width = int(request.args.get("width", 96))
-        height = int(request.args.get("height", 96))
+        width = int(request.args.get("width", [96])[0])
+        height = int(request.args.get("height", [96])[0])
         identicon_bytes = self.generate_identicon(name, width, height)
         request.setHeader(b"Content-Type", b"image/png")
         return identicon_bytes