去掉ghttp客户端调试语句

This commit is contained in:
John
2018-05-27 22:09:19 +08:00
parent 982c0d80da
commit a3fbf957d9

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