Fixing do method.
parent
cc26a118a4
commit
adeb3ae60d
|
@ -18,7 +18,8 @@ func (c *Cli) Test() (ret []byte, err error) {
|
||||||
return ret, err
|
return ret, err
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *Cli) Do(data string) (ret string, err error) {
|
func (c *Cli) Do(data string) (ret []byte, err error) {
|
||||||
err = c.HttpCli().JsonPost("/ipc/ahk/do", data, &ret)
|
i := []byte(data)
|
||||||
|
ret, err = c.HttpCli().RawPost("/ipc/ahk/do", i)
|
||||||
return ret, err
|
return ret, err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue