aboutsummaryrefslogtreecommitdiff
path: root/weed/util
diff options
context:
space:
mode:
Diffstat (limited to 'weed/util')
-rw-r--r--weed/util/http_util.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/weed/util/http_util.go b/weed/util/http_util.go
index 2379e3b2b..83302663e 100644
--- a/weed/util/http_util.go
+++ b/weed/util/http_util.go
@@ -87,9 +87,6 @@ func Delete(url string, jwt security.EncodedJwt) error {
return e
}
defer resp.Body.Close()
- if resp.StatusCode >= 400 {
- return fmt.Errorf("%s: %s", url, resp.Status)
- }
body, err := ioutil.ReadAll(resp.Body)
if err != nil {
return err