mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-22 17:46:08 +03: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
2 changed files with 3 additions and 2 deletions
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 a new issue