[Zope-CVS] CVS: ZopeProducts/RotterdamSprint - XmlObjectView.py:1.3

Joachim Werner joe@iuveno-net.de
Wed, 4 Dec 2002 05:45:40 -0500


Update of /cvs-repository/ZopeProducts/RotterdamSprint
In directory cvs.zope.org:/tmp/cvs-serv21749/lib/python/ZopeProducts/RotterdamSprint

Modified Files:
	XmlObjectView.py 
Log Message:
Fixed to return a Content-Type of text/xml

=== ZopeProducts/RotterdamSprint/XmlObjectView.py 1.2 => 1.3 ===
--- ZopeProducts/RotterdamSprint/XmlObjectView.py:1.2	Wed Dec  4 05:06:42 2002
+++ ZopeProducts/RotterdamSprint/XmlObjectView.py	Wed Dec  4 05:45:39 2002
@@ -16,5 +16,6 @@
                 result.append('<collection name="%s" length="%s" />' % (name, len(item)))
             else:
                 result.append('<item name="%s" />' % name)
+        self.request.response.setHeader('Content-Type', 'text/xml')
         return u'<?xml version="1.0" ?><children> %s </children>' % ' '.join(result)