Commit 05f7acad authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

set content-length in FormPrintout.index_html().

parent 27a5ab92
...@@ -290,6 +290,7 @@ class FormPrintout(Implicit, Persistent, RoleManager, Item, PropertyManager): ...@@ -290,6 +290,7 @@ class FormPrintout(Implicit, Persistent, RoleManager, Item, PropertyManager):
# End of temporary implementation # End of temporary implementation
if not format: if not format:
if REQUEST is not None and not batch_mode: if REQUEST is not None and not batch_mode:
REQUEST.RESPONSE.setHeader('Content-Length', len(printout))
REQUEST.RESPONSE.setHeader('Content-Type','%s' % content_type) REQUEST.RESPONSE.setHeader('Content-Type','%s' % content_type)
REQUEST.RESPONSE.setHeader('Content-disposition', REQUEST.RESPONSE.setHeader('Content-disposition',
'inline;filename="%s%s"' % \ 'inline;filename="%s%s"' % \
......
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