From c7578102ae7b512ea3050612e44ce645536ba9a3 Mon Sep 17 00:00:00 2001 From: Maria Khrustaleva Date: Sat, 12 Feb 2022 07:26:45 +0300 Subject: [PATCH] Fix content type (#4333) --- CHANGELOG.md | 1 + cvat/apps/engine/views.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d2201909..03f804f5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -72,6 +72,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Error in create project from backup for standard 3D annotation () - Annotations search does not work correctly in some corner cases (when use complex properties with width, height) () - Kibana requests are not proxied due to django-revproxy incompatibility with Django >3.2.x () +- Content type for getting frame with tasks/{id}/data/ endpoint () ### Security - Updated ELK to 6.8.23 which uses log4j 2.17.1 () diff --git a/cvat/apps/engine/views.py b/cvat/apps/engine/views.py index 93efd5c1..ce024018 100644 --- a/cvat/apps/engine/views.py +++ b/cvat/apps/engine/views.py @@ -478,7 +478,7 @@ class DataChunkGetter: raise ValidationError('The frame number should be in ' + f'[{start}, {stop}] range') - buf, mime = frame_provider.get_frame(self.number, self.quality) + buf, (mime, _) = frame_provider.get_frame(self.number, self.quality) return HttpResponse(buf.getvalue(), content_type=mime) elif self.type == 'preview':