Fixing do method.

master
Pedro de Oliveira Guedes 2021-12-16 09:38:12 -03:00
parent cc26a118a4
commit adeb3ae60d
1 changed files with 3 additions and 2 deletions

View File

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