Browse Source

delete operation does not need this checking

pull/346/head
Chris Lu 9 years ago
parent
commit
a57162e8bf
  1. 3
      weed/util/http_util.go

3
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

Loading…
Cancel
Save