From 2c20e7e7637a9c1d658affdee98712d159cd531a Mon Sep 17 00:00:00 2001 From: Christoph Polcin Date: Sun, 16 Oct 2022 00:39:39 +0200 Subject: [PATCH] Revert "feat: handle 404 on propfind (#57)" This reverts commit 8190232c061223ef86e381fe762cc9dcf8420a00. --- requests.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/requests.go b/requests.go index 8f69a3d..0966d1a 100644 --- a/requests.go +++ b/requests.go @@ -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) }