From 7dcf1b768dfd716b3ecfe079721fa13ab5036aa6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Espino?= Date: Tue, 19 Aug 2014 18:14:25 +0200 Subject: [PATCH] Revert "Fixed bug #726: Now attachments are in new window but inline" This reverts commit 97fb48328e063b78bfe316a2afa7811d3176c524. --- 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 9139bc34..31047506 100644 --- a/taiga/projects/attachments/api.py +++ b/taiga/projects/attachments/api.py @@ -107,7 +107,7 @@ class RawAttachmentView(generics.RetrieveAPIView): name = attachment.name response = http.HttpResponse() response['X-Accel-Redirect'] = "/{filepath}".format(filepath=name) - response['Content-Disposition'] = 'inline;filename={filename}'.format( + response['Content-Disposition'] = 'attachment;filename={filename}'.format( filename=os.path.basename(name)) return response