Browse Source

fix "call of Unmarshal passes non-pointer as second argument"

pull/1293/head
Chris Lu 5 years ago
parent
commit
e0f5996560
  1. 2
      weed/util/http_util.go

2
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)
}

Loading…
Cancel
Save