feat(label): send label and log label. easy for debug

This commit is contained in:
eson 2020-11-23 12:21:36 +08:00
parent 90542fd29b
commit eda1ba83ab

View File

@ -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)