summary refs log tree commit diff
path: root/synapse/rest/media/v1/identicon_resource.py
diff options
context:
space:
mode:
Diffstat (limited to 'synapse/rest/media/v1/identicon_resource.py')
-rw-r--r--synapse/rest/media/v1/identicon_resource.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/rest/media/v1/identicon_resource.py b/synapse/rest/media/v1/identicon_resource.py
index 8878d4c3d4..636e3a33c2 100644
--- a/synapse/rest/media/v1/identicon_resource.py
+++ b/synapse/rest/media/v1/identicon_resource.py
@@ -42,7 +42,7 @@ class IdenticonResource(Resource):
     def render_GET(self, request):
         name = "/".join(request.postpath)
         width = int(request.args.get("width", 96))
-        height = int(request.args.get("width", 96))
+        height = int(request.args.get("height", 96))
         identicon_bytes = self.generate_identicon(name, width, height)
         request.setHeader(b"Content-Type", b"image/png")
         return identicon_bytes