Revert "feat: handle 404 on propfind (#57)"
This reverts commit 8190232c06
.
This commit is contained in:
parent
fbeb69f25b
commit
2c20e7e763
@ -130,10 +130,7 @@ func (c *Client) propfind(path string, self bool, body string, resp interface{},
|
||||
}
|
||||
defer rs.Body.Close()
|
||||
|
||||
switch rs.StatusCode {
|
||||
case 207:
|
||||
return newPathError("PROPFIND", path, rs.StatusCode)
|
||||
case 404:
|
||||
if rs.StatusCode != 207 {
|
||||
return newPathError("PROPFIND", path, rs.StatusCode)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user