From eda1ba83abf247089a3d2189b74164c3415a9bd8 Mon Sep 17 00:00:00 2001 From: eson Date: Mon, 23 Nov 2020 12:21:36 +0800 Subject: [PATCH] feat(label): send label and log label. easy for debug --- client.go | 1 + 1 file changed, 1 insertion(+) diff --git a/client.go b/client.go index 7c1ccb7..da10a85 100644 --- a/client.go +++ b/client.go @@ -167,6 +167,7 @@ func (cli *Client) Open(label, urlstr string) (bodyRes string, ok bool) { data := url.Values{} data["url"] = []string{urlstr} data["callback"] = []string{cli.host + ":" + cli.port + "/" + callback.(Callback).hash} + data["label"] = []string{label} resp, err := http.DefaultClient.PostForm(cli.chromeProxyAddr+"/task/put", data) if err != nil { panic(err)