Skip to content
Snippets Groups Projects
Commit 30858ff4 authored by Aaron's avatar Aaron Committed by Erik Johnston
Browse files

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: default avatarAaron Raimist <aaron@raim.ist>
parent 58c8ed5b
No related branches found
No related tags found
No related merge requests found
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")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment