diff --git a/client.go b/client.go index bcf776d..bcfdc94 100644 --- a/client.go +++ b/client.go @@ -125,6 +125,10 @@ func (c *Client) Decode(resp *http.Response, out interface{}) error { return nil } + if buf.String() == "" { + return nil + } + err := json.Unmarshal(buf.Bytes(), &out) if err != nil {