feat(label): send label and log label. easy for debug
This commit is contained in:
parent
90542fd29b
commit
eda1ba83ab
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user