diff --git a/httpclient.go b/httpclient.go index 51a1693..d2c0857 100644 --- a/httpclient.go +++ b/httpclient.go @@ -84,9 +84,6 @@ func (hc *httpClient) Send(requestURL string, method string, header map[string]s default: return nil, errors.New(method + " is not invalid") } - if response, err = c.Do(method, requestURL, header, bytes.NewReader(byteData)); nil != err { - return nil, err - } if response.StatusCode != http.StatusOK { return nil, fmt.Errorf("%v : %v", response.StatusCode, response.Status) }