Commit e6a17961 authored by Nicolas Delaby's avatar Nicolas Delaby

return Content-Disposition header qualified as attachment

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35426 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7c020474
......@@ -205,7 +205,8 @@ class OOoBuilder(Implicit):
"""
request = get_request()
if name:
request.response.setHeader('Content-Disposition', 'inline; filename=%s.%s' % (name, extension))
request.response.setHeader('Content-Disposition',
'attachment; filename=%s.%s' % (name, extension))
self._document.seek(0)
return self._document.read()
......
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