[Zope-Checkins] CVS: Packages/webdav - Collection.py:1.24.66.3
Resource.py:1.55.10.4
Chris Withers
chris at simplistix.co.uk
Fri Jul 30 17:49:05 EDT 2004
Update of /cvs-repository/Packages/webdav
In directory cvs.zope.org:/tmp/cvs-serv3067/lib/python/webdav
Modified Files:
Tag: Zope-2_7-branch
Collection.py Resource.py
Log Message:
Collector #1441: Removed headers introduced to make Microsoft
webfolders and office apps happy, since they make a lot of
standards-compliant things unhappy AND they trick MS Office
into trying to edit office files stored in Zope via WebDAV even
when the user isn't allowed to edit them and is only trying to
download them.
=== Packages/webdav/Collection.py 1.24.66.2 => 1.24.66.3 ===
--- Packages/webdav/Collection.py:1.24.66.2 Mon Nov 17 17:34:22 2003
+++ Packages/webdav/Collection.py Fri Jul 30 17:49:05 2004
@@ -44,7 +44,7 @@
response.setHeader('Content-Location', location)
response.setHeader('Connection', 'close', 1)
response.setHeader('Date', rfc1123_date(), 1)
- response.setHeader('MS-Author-Via', 'DAV')
+ # XXMSXX response.setHeader('MS-Author-Via', 'DAV')
def HEAD(self, REQUEST, RESPONSE):
"""Retrieve resource information without a response body."""
=== Packages/webdav/Resource.py 1.55.10.3 => 1.55.10.4 ===
--- Packages/webdav/Resource.py:1.55.10.3 Mon Nov 17 17:34:22 2003
+++ Packages/webdav/Resource.py Fri Jul 30 17:49:05 2004
@@ -67,14 +67,13 @@
# Init expected HTTP 1.1 / WebDAV headers which are not
# currently set by the base response object automagically.
#
- # Note we set an borg-specific header for ie5 :( Also, we
- # sniff for a ZServer response object, because we don't
+ # Also, we sniff for a ZServer response object, because we don't
# want to write duplicate headers (since ZS writes Date
# and Connection itself).
if not hasattr(response, '_server_version'):
response.setHeader('Connection', 'close')
response.setHeader('Date', rfc1123_date(), 1)
- response.setHeader('MS-Author-Via', 'DAV')
+ # XXMSXX response.setHeader('MS-Author-Via', 'DAV')
# HTTP Range support
if HTTPRangeInterface.isImplementedBy(self):
@@ -201,7 +200,7 @@
self.dav__init(REQUEST, RESPONSE)
RESPONSE.setHeader('Allow', ', '.join(self.__http_methods__))
RESPONSE.setHeader('Content-Length', 0)
- RESPONSE.setHeader('DAV', '1,2', 1)
+ # XXMSXX RESPONSE.setHeader('DAV', '1,2', 1)
RESPONSE.setStatus(200)
return RESPONSE
More information about the Zope-Checkins
mailing list