[Zope-CVS] CVS: Products/ExternalEditor - ExternalEditor.py:1.15
Casey Duncan
casey@zope.com
Fri, 19 Jul 2002 09:17:20 -0400
Update of /cvs-repository/Products/ExternalEditor
In directory cvs.zope.org:/tmp/cvs-serv27189
Modified Files:
ExternalEditor.py
Log Message:
Corrected Content-Length
=== Products/ExternalEditor/ExternalEditor.py 1.14 => 1.15 ===
# We have a File instance with chunked data, lets stream it
metadata = join(r, '\n')
RESPONSE.setHeader('Content-Type', 'application/x-zope-edit')
- RESPONSE.setHeader('Content-Length', len(metadata) + ob.get_size())
+ RESPONSE.setHeader('Content-Length',
+ len(metadata) + ob.get_size() + 1)
RESPONSE.write(metadata)
RESPONSE.write('\n')
data = ob.data