Skip to content

Commit

Permalink
checkpoint
Browse files Browse the repository at this point in the history
Signed-off-by: Jeff Ortel <[email protected]>
  • Loading branch information
jortel committed Aug 9, 2024
1 parent 5ac6794 commit 3c80f8e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions binding/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -761,6 +761,7 @@ func (r *Client) restError(response *http.Response) (err error) {
// decode body into object.
func (r *Client) decode(object any, response *http.Response) (err error) {
encoding := response.Header.Get(api.ContentType)
encoding = strings.Split(encoding, ";")[0]
switch encoding {
case "", binding.MIMEJSON:
d := json.NewDecoder(response.Body)
Expand Down

0 comments on commit 3c80f8e

Please sign in to comment.