Commit 9812a45e by rfkelly0

DAVFS: fix handling of 204 status code in setcontents (issue #24)

parent 21dff279
......@@ -266,8 +266,8 @@ class DAVFS(FS):
raise ResourceInvalidError(path)
if resp.status == 409:
raise ParentDirectoryMissingError(path)
if resp.status not in (200,201):
raise_generic_error(response,"setcontents",path)
if resp.status not in (200,201,204):
raise_generic_error(resp,"setcontents",path)
def open(self,path,mode="r"):
# Truncate the file if requested
......
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