fix delete for yandex
204 success added
This commit is contained in:
parent
a03a0a3645
commit
2b5dab74d3
@ -192,7 +192,7 @@ func (c *Client) RemoveAll(path string) error {
|
|||||||
}
|
}
|
||||||
rs.Body.Close()
|
rs.Body.Close()
|
||||||
|
|
||||||
if rs.StatusCode == 200 || rs.StatusCode == 404 {
|
if rs.StatusCode == 200 || rs.StatusCode == 204 || rs.StatusCode == 404 {
|
||||||
return nil
|
return nil
|
||||||
} else {
|
} else {
|
||||||
return newPathError("Remove", path, rs.StatusCode)
|
return newPathError("Remove", path, rs.StatusCode)
|
||||||
|
Loading…
Reference in New Issue
Block a user