[Zope-CVS] CVS: Packages/Moztop/moztopsupport/http - options.py:1.4

Sidnei da Silva sidnei@x3ng.com.br
Wed, 2 Apr 2003 14:01:48 -0500


Update of /cvs-repository/Packages/Moztop/moztopsupport/http
In directory cvs.zope.org:/tmp/cvs-serv26227/moztopsupport/http

Modified Files:
	options.py 
Log Message:
Some applications expect a DAV header on OPTIONS response. We shouldnt assert that we implement while we dont, but we need to test in some way.

=== Packages/Moztop/moztopsupport/http/options.py 1.3 => 1.4 ===
--- Packages/Moztop/moztopsupport/http/options.py:1.3	Sat Mar 29 12:09:55 2003
+++ Packages/Moztop/moztopsupport/http/options.py	Wed Apr  2 14:01:48 2003
@@ -38,6 +38,8 @@
                 allowed.append(m)
 
         self.request.response.setHeader('Allow', ', '.join(allowed))
+        # I know its a lie :(
+        self.request.response.setHeader('DAV', '1', literal=True)
         self.request.response.setStatus(200)
         return ''