Skip to content

Commit

Permalink
Fix exception in dav provider
Browse files Browse the repository at this point in the history
  • Loading branch information
mar10 committed Aug 13, 2018
1 parent ab2b751 commit b88cc7c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions wsgidav/request_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -1442,7 +1442,7 @@ def do_OPTIONS(self, environ, start_response):
allow.extend(["HEAD", "GET", "PROPFIND"])
# if provider.propManager is not None:
# allow.extend( [ "PROPFIND" ] )
if not provider.isReadOnly():
if not provider.is_readonly():
allow.extend(["DELETE", "COPY", "MOVE", "PROPPATCH"])
# if provider.propManager is not None:
# allow.extend( [ "PROPPATCH" ] )
Expand All @@ -1453,7 +1453,7 @@ def do_OPTIONS(self, environ, start_response):
allow.extend(["HEAD", "GET", "PROPFIND"])
# if provider.propManager is not None:
# allow.extend( [ "PROPFIND" ] )
if not provider.isReadOnly():
if not provider.is_readonly():
allow.extend(["PUT", "DELETE", "COPY", "MOVE", "PROPPATCH"])
# if provider.propManager is not None:
# allow.extend( [ "PROPPATCH" ] )
Expand All @@ -1465,7 +1465,7 @@ def do_OPTIONS(self, environ, start_response):
# A new resource below an existing collection
# TODO: should we allow LOCK here? I think it is allowed to lock an
# non-existing resource
if not provider.isReadOnly():
if not provider.is_readonly():
allow.extend(["PUT", "MKCOL"])
else:
self._fail(HTTP_NOT_FOUND)
Expand Down

0 comments on commit b88cc7c

Please sign in to comment.