[Zope-Checkins] CVS: Zope/lib/python/OFS - Image.py:1.146
Andreas Jung
andreas@andreas-jung.com
Sun, 6 Jul 2003 08:11:49 -0400
Update of /cvs-repository/Zope/lib/python/OFS
In directory cvs.zope.org:/tmp/cvs-serv21271/lib/python/OFS
Modified Files:
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.146 ===
--- 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:11:14 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)