From e0f599656008b2075dc874271597027129689e4d Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Fri, 17 Apr 2020 10:04:41 -0700 Subject: [PATCH] fix "call of Unmarshal passes non-pointer as second argument" --- weed/util/http_util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }