Type change

master
Leonardo Domingues 2021-12-16 16:54:10 -03:00
parent 18173ed486
commit c9f9a37bc3
1 changed files with 3 additions and 2 deletions

View File

@ -18,7 +18,8 @@ func (c *Cli) Test() (ret string, err error) {
return ret, err
}
func (c *Cli) Do(data string) (ret string, err error) {
err = c.HttpCli().JsonPost("/ipc/autoit/do", data, &ret)
func (c *Cli) Do(data string) (ret []byte, err error) {
i := []byte(data)
ret, err = c.HttpCli().RawPost("/ipc/autoit/do", i)
return ret, err
}