Commit 6e8f5d10 authored by 's avatar

Added a header for the borg to help ie5 avoid trying FrontPage operations.

parent 968a3f21
......@@ -85,7 +85,7 @@
"""WebDAV support - null resource objects."""
__version__='$Revision: 1.15 $'[11:-2]
__version__='$Revision: 1.16 $'[11:-2]
import sys, os, string, mimetypes
import Acquisition, OFS.content_types
......@@ -112,7 +112,7 @@ class NullResource(Persistent, Acquisition.Implicit, Resource):
try: return getattr(self, name)
except: pass
method=REQUEST.get('REQUEST_METHOD', 'GET')
if method in ('MKCOL',):
if method in ('PUT', 'MKCOL'):
raise 'Conflict', 'Collection ancestors must already exist.'
raise 'Not Found', 'The requested resource was not found.'
......
......@@ -85,7 +85,7 @@
"""WebDAV support - resource objects."""
__version__='$Revision: 1.22 $'[11:-2]
__version__='$Revision: 1.23 $'[11:-2]
import sys, os, string, mimetypes, davcmds, ExtensionClass
from common import absattr, aq_base, urlfix, rfc1123_date
......@@ -115,8 +115,10 @@ class Resource(ExtensionClass.Base):
def dav__init(self, request, response):
# Init expected HTTP 1.1 / WebDAV headers which are not
# currently set by the response object automagically.
# Note we set an borg-specific header for ie5 :(
response.setHeader('Connection', 'close', 1)
response.setHeader('Date', rfc1123_date(), 1)
response.setHeader('MS-Author-Via', 'DAV')
def dav__validate(self, object, methodname, REQUEST):
msg='<strong>You are not authorized to access this resource.</strong>'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment