mirror of
https://gitee.com/johng/gf
synced 2026-06-07 10:22:11 +08:00
Merge branch 'master' of http://johnx.cn:6662/John/gf into qiangg_performance_test
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user