Skip to content

Commit

Permalink
fix decoder
Browse files Browse the repository at this point in the history
  • Loading branch information
nothub committed May 15, 2023
1 parent c31ddca commit 9363378
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion requester/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func (httpClient *HTTPClient) GetModel(url string, respModel interface{}, errMod
return errors.New("http status " + strconv.Itoa(res.StatusCode) + " - " + errModel.Error())
}

err = json.NewDecoder(res.Body).Decode(&respModel)
err = decode(res.Body, &respModel)
if err != nil {
return errors.New("http status " + strconv.Itoa(res.StatusCode) + " - " + err.Error())
}
Expand Down

0 comments on commit 9363378

Please sign in to comment.