diff --git a/product/ERP5/mixin/downloadable.py b/product/ERP5/mixin/downloadable.py index fb030eb5a4a28bc0788d6b44b5d4fca1b421f878..f2b3f8078632a72f526abe6bc0d7af795b21081e 100644 --- a/product/ERP5/mixin/downloadable.py +++ b/product/ERP5/mixin/downloadable.py @@ -112,6 +112,8 @@ class DownloadableMixin: # need to return it as attachment filename = self.getStandardFilename(format=format) RESPONSE.setHeader('Cache-Control', 'Private') # workaround for Internet Explorer's bug + # workaround for IE's bug to download files over SSL + RESPONSE.setHeader('Pragma', '') RESPONSE.setHeader('Content-Disposition', 'attachment; filename="%s"' % filename) RESPONSE.setHeader('Accept-Ranges', 'bytes')