From cedbbbcda5e20c4580859b576a69fe5f71acec2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Espino?= Date: Wed, 3 Sep 2014 13:30:14 +0200 Subject: [PATCH] Fix bug #726: Solve problem with with attachments content-type header --- taiga/projects/attachments/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/taiga/projects/attachments/api.py b/taiga/projects/attachments/api.py index aded41aa..8f56a058 100644 --- a/taiga/projects/attachments/api.py +++ b/taiga/projects/attachments/api.py @@ -117,7 +117,7 @@ class RawAttachmentView(generics.RetrieveAPIView): response['X-Accel-Redirect'] = "/{filepath}".format(filepath=name) response['Content-Disposition'] = 'attachment;filename={filename}'.format( filename=os.path.basename(name)) - response['Content-Type'] = mimetypes.guess_type(name) + response['Content-Type'] = mimetypes.guess_type(name)[0] return response