Commit f1942650 authored by Gabriel Monnerat's avatar Gabriel Monnerat

add workaround for Internet Explorer's bug to download files over SSL. More...

add workaround for Internet Explorer's bug to download files over SSL. More details here: http://support.microsoft.com/kb/316431
parent 19d4aa13
...@@ -112,6 +112,8 @@ class DownloadableMixin: ...@@ -112,6 +112,8 @@ class DownloadableMixin:
# need to return it as attachment # need to return it as attachment
filename = self.getStandardFilename(format=format) filename = self.getStandardFilename(format=format)
RESPONSE.setHeader('Cache-Control', 'Private') # workaround for Internet Explorer's bug 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', RESPONSE.setHeader('Content-Disposition',
'attachment; filename="%s"' % filename) 'attachment; filename="%s"' % filename)
RESPONSE.setHeader('Accept-Ranges', 'bytes') RESPONSE.setHeader('Accept-Ranges', 'bytes')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment