diff options
| author | Chris Lu <chris.lu@gmail.com> | 2016-07-21 00:40:13 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2016-07-21 00:40:13 -0700 |
| commit | a57162e8bf14b5b25bd246bfc01e725bdccf76f3 (patch) | |
| tree | 3813475714a64e6e2197669b593d20aa3dc7380d | |
| parent | cdae9fc680c8e7f99c0ef47dd98f674df76e5078 (diff) | |
| download | seaweedfs-a57162e8bf14b5b25bd246bfc01e725bdccf76f3.tar.xz seaweedfs-a57162e8bf14b5b25bd246bfc01e725bdccf76f3.zip | |
delete operation does not need this checking
| -rw-r--r-- | weed/util/http_util.go | 3 |
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 |
