mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-10-01 11:49:51 -04:00
Fix error when downloading thumbnail with width/height param missing (#5258)
Fix error when downloading thumbnail with width/height param missing Fixes #2748 Signed-off-by: Aaron Raimist <aaron@raim.ist>
This commit is contained in:
parent
58c8ed5b0d
commit
30858ff461
1
changelog.d/5258.bugfix
Normal file
1
changelog.d/5258.bugfix
Normal file
@ -0,0 +1 @@
|
||||
Fix error when downloading thumbnail with missing width/height parameter.
|
@ -56,8 +56,8 @@ class ThumbnailResource(Resource):
|
||||
def _async_render_GET(self, request):
|
||||
set_cors_headers(request)
|
||||
server_name, media_id, _ = parse_media_id(request)
|
||||
width = parse_integer(request, "width")
|
||||
height = parse_integer(request, "height")
|
||||
width = parse_integer(request, "width", required=True)
|
||||
height = parse_integer(request, "height", required=True)
|
||||
method = parse_string(request, "method", "scale")
|
||||
m_type = parse_string(request, "type", "image/png")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user