Revert "feat: handle 404 on propfind (#57)"

This reverts commit 8190232c06.
This commit is contained in:
Christoph Polcin 2022-10-16 00:39:39 +02:00
parent fbeb69f25b
commit 2c20e7e763

View File

@ -130,10 +130,7 @@ func (c *Client) propfind(path string, self bool, body string, resp interface{},
} }
defer rs.Body.Close() defer rs.Body.Close()
switch rs.StatusCode { if rs.StatusCode != 207 {
case 207:
return newPathError("PROPFIND", path, rs.StatusCode)
case 404:
return newPathError("PROPFIND", path, rs.StatusCode) return newPathError("PROPFIND", path, rs.StatusCode)
} }