diff --git a/client.go b/client.go index f7eb510..7159f44 100644 --- a/client.go +++ b/client.go @@ -390,7 +390,7 @@ func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err err return err } return nil - } else if strings.Contains(contentType, "application/json") { + } else if strings.Contains(contentType, "application/json") || strings.Contains(contentType, "application/vnd.api+json") { if err = json.Unmarshal(b, v); err != nil { return err }