VW: fix action request response parsed as json
This commit is contained in:
parent
9f51152c61
commit
f43c204cc9
1 changed files with 4 additions and 2 deletions
|
|
@ -199,8 +199,10 @@ func (v *API) Action(vin, action, value string) error {
|
||||||
})
|
})
|
||||||
|
|
||||||
if err == nil {
|
if err == nil {
|
||||||
var res interface{}
|
var resp *http.Response
|
||||||
err = v.DoJSON(req, &res)
|
if resp, err = v.Do(req); err == nil {
|
||||||
|
resp.Body.Close()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return err
|
return err
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue