[Zope-Checkins] CVS: Zope/lib/python/OFS - Image.py:1.145.2.1
Andreas Jung
andreas@andreas-jung.com
Sun, 6 Jul 2003 08:10:34 -0400
Update of /cvs-repository/Zope/lib/python/OFS
In directory cvs.zope.org:/tmp/cvs-serv21100/lib/python/OFS
Modified Files:
Tag: Zope-2_7-branch
Image.py
Log Message:
- Collector #342: Avoiding insertion of a BASE tag for file objects
with content-type text/html
=== Zope/lib/python/OFS/Image.py 1.145 => 1.145.2.1 ===
--- Zope/lib/python/OFS/Image.py:1.145 Tue Jun 17 14:01:25 2003
+++ Zope/lib/python/OFS/Image.py Sun Jul 6 08:09:58 2003
@@ -375,7 +375,9 @@
self.ZCacheable_set(None)
data=self.data
- if type(data) is type(''): return data
+ if type(data) is type(''):
+ RESPONSE.setBase(None)
+ return data
while data is not None:
RESPONSE.write(data.data)