Skip to content

Commit

Permalink
Fix decoding
Browse files Browse the repository at this point in the history
Populate the structure correctly.
  • Loading branch information
fgsch committed Mar 12, 2024
1 parent 792278f commit 094c2ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fastly/config_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ func (c *Client) ListConfigStoreServices(i *ListConfigStoreServicesInput) ([]*Se
defer resp.Body.Close()

var ss []*Service
if err = json.NewDecoder(resp.Body).Decode(&ss); err != nil {
if err = decodeBodyMap(resp.Body, &ss); err != nil {
return nil, err
}

Expand Down

0 comments on commit 094c2ea

Please sign in to comment.