From a57162e8bf14b5b25bd246bfc01e725bdccf76f3 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Thu, 21 Jul 2016 00:40:13 -0700 Subject: [PATCH] delete operation does not need this checking --- weed/util/http_util.go | 3 --- 1 file changed, 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