summary refs log tree commit diff
path: root/synapse/rest
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2015-02-02 16:29:18 +0000
committerMark Haines <mark.haines@matrix.org>2015-02-02 16:29:18 +0000
commit038f5afb07aa1df27528116eeed0f6e44d67c579 (patch)
treede1338acfd87a9b23e521ce23f59344b4842bd75 /synapse/rest
parentAdd a media/v1/identicon resource for generating identicons using pydenticon (diff)
downloadsynapse-038f5afb07aa1df27528116eeed0f6e44d67c579.tar.xz
Spell height more correctly
Diffstat (limited to 'synapse/rest')
-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