Skip to content

Commit

Permalink
VW: fix action request response parsed as json
Browse files Browse the repository at this point in the history
  • Loading branch information
andig committed May 15, 2021
1 parent 9f51152 commit f43c204
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions internal/vehicle/vw/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,10 @@ func (v *API) Action(vin, action, value string) error {
})

if err == nil {
var res interface{}
err = v.DoJSON(req, &res)
var resp *http.Response
if resp, err = v.Do(req); err == nil {
resp.Body.Close()
}
}

return err
Expand Down

0 comments on commit f43c204

Please sign in to comment.