diff --git a/weed/util/http_util.go b/weed/util/http_util.go index 4b1a7b895..5df79a7be 100644 --- a/weed/util/http_util.go +++ b/weed/util/http_util.go @@ -117,7 +117,7 @@ func Delete(url string, jwt string) error { return nil } m := make(map[string]interface{}) - if e := json.Unmarshal(body, m); e == nil { + if e := json.Unmarshal(body, &m); e == nil { if s, ok := m["error"].(string); ok { return errors.New(s) }