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:
Aaron Raimist 2019-05-29 08:27:41 -05:00 committed by Erik Johnston
parent 58c8ed5b0d
commit 30858ff461
2 changed files with 3 additions and 2 deletions

1
changelog.d/5258.bugfix Normal file
View File

@ -0,0 +1 @@
Fix error when downloading thumbnail with missing width/height parameter.

View File

@ -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")