From 2b5dab74d3c92e1193c499e4f1b71751814e8ae3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Engin=20KIZILG=C3=9CN?= Date: Mon, 18 Sep 2017 15:54:19 +0300 Subject: [PATCH] fix delete for yandex 204 success added --- client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.go b/client.go index 3c665c3..fc23a45 100644 --- a/client.go +++ b/client.go @@ -192,7 +192,7 @@ func (c *Client) RemoveAll(path string) error { } rs.Body.Close() - if rs.StatusCode == 200 || rs.StatusCode == 404 { + if rs.StatusCode == 200 || rs.StatusCode == 204 || rs.StatusCode == 404 { return nil } else { return newPathError("Remove", path, rs.StatusCode)