Commit 24fb2949 authored by wang's avatar wang

cronet

parent 0df0a040
......@@ -64,6 +64,8 @@ func (c *Client) Start() error {
}
if strings.ToUpper(c.Item.Method) == "GET" {
req, err = http.NewRequest(http.MethodGet, c.Item.Url, nil)
} else if strings.ToUpper(c.Item.Method) == "GET" {
req, err = http.NewRequest(http.MethodOptions, c.Item.Url, nil)
} else {
req, err = http.NewRequest(http.MethodPost, c.Item.Url, strings.NewReader(c.Item.Data))
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment