Revert "Fixed bug #726: Now attachments are in new window but inline"

This reverts commit 97fb48328e.
remotes/origin/enhancement/email-actions
Jesús Espino 2014-08-19 18:14:25 +02:00
parent 97fb48328e
commit 7dcf1b768d
1 changed files with 1 additions and 1 deletions

View File

@ -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