[Zope3-checkins] CVS: Zope3/src/zope/app/dav - propfind.py:1.3

Sidnei da Silva sidnei@x3ng.com.br
Wed, 21 May 2003 16:30:16 -0400


Update of /cvs-repository/Zope3/src/zope/app/dav
In directory cvs.zope.org:/tmp/cvs-serv22690/src/zope/app/dav

Modified Files:
	propfind.py 
Log Message:
Default content type to text/xml. The RFC says nothing about it being required, and Nautilus doesnt send it. So, with this fix, I can browse Zope3 in Nautilus :)

=== Zope3/src/zope/app/dav/propfind.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/dav/propfind.py:1.2	Wed May 21 13:26:37 2003
+++ Zope3/src/zope/app/dav/propfind.py	Wed May 21 16:29:46 2003
@@ -32,7 +32,7 @@
         self.context = context
         self.request = request
         self.setDepth(request.getHeader('depth', 'infinity'))
-        self.content_type = request.getHeader('content-type', '')
+        self.content_type = request.getHeader('content-type', 'text/xml')
         self.default_ns = 'DAV:'
 
     def getDepth(self):