ginuerzh / weedo

a SeaWeedFS client written in golang
https://github.com/chrislusf/seaweedfs
Apache License 2.0
49 stars 17 forks source link

Client.Delete() returning error on success #6

Closed nd2s closed 7 years ago

nd2s commented 7 years ago

Client.Delete() gives me following error: Error #01: {"size":961301} but the entry was deleted and the error message indicates success.

I'm assuming the problem is:

    if resp.StatusCode != http.StatusOK {
        txt, _ := ioutil.ReadAll(resp.Body)
        return errors.New(string(txt))
    }

in del() function in weedo.go.

nd2s commented 7 years ago

Apparently this was introduced in the second to last pull request merge.