Skip to content

Commit f43c204

Browse files
committed
VW: fix action request response parsed as json
1 parent 9f51152 commit f43c204

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

internal/vehicle/vw/api.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,10 @@ func (v *API) Action(vin, action, value string) error {
199199
})
200200

201201
if err == nil {
202-
var res interface{}
203-
err = v.DoJSON(req, &res)
202+
var resp *http.Response
203+
if resp, err = v.Do(req); err == nil {
204+
resp.Body.Close()
205+
}
204206
}
205207

206208
return err

0 commit comments

Comments
 (0)