From 2766fdd1a1514621695ffb3ddcc1a48f52a4401d Mon Sep 17 00:00:00 2001 From: rlacko <rlacko@sch.bme.hu> Date: Tue, 25 Feb 2020 00:42:08 +0100 Subject: [PATCH] fix mime type --- src/document/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/document/views.py b/src/document/views.py index e2e5d30..bc72df6 100644 --- a/src/document/views.py +++ b/src/document/views.py @@ -56,7 +56,7 @@ class DocumentViewSet(viewsets.ModelViewSet): with document.file.open() as fh: response = HttpResponse( fh.read(), - content_type="application/media" + content_type="application" ) response['Content-Disposition'] = \ 'inline; filename=' + os.path.basename(document.file.name) -- GitLab