mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-01 01:36:05 -04:00
Fix setting identicon width and height
This commit is contained in:
parent
038f5afb07
commit
f2eda123b7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user