Merge branch 'master' of http://johnx.cn:6662/John/gf into qiangg_performance_test

This commit is contained in:
John
2018-05-27 22:11:50 +08:00

View File

@ -12,7 +12,6 @@ import (
"bytes"
"strings"
"net/http"
"fmt"
"mime/multipart"
"os"
"io"
@ -125,7 +124,6 @@ func (c *Client) DoRequest(method, url string, data []byte) (*ClientResponse, er
if strings.Compare("POST", strings.ToUpper(method)) == 0 {
return c.Post(url, string(data))
}
fmt.Println(method)
req, err := http.NewRequest(strings.ToUpper(method), url, bytes.NewReader(data))
if err != nil {
return nil, err