diff --git a/go/paddlecloud/restclient.go b/go/paddlecloud/restclient.go index 85dcab58..d09382fc 100644 --- a/go/paddlecloud/restclient.go +++ b/go/paddlecloud/restclient.go @@ -20,7 +20,7 @@ var httpClient = &http.Client{Transport: &http.Transport{}} func makeRequest(uri string, method string, body io.Reader, contentType string, query url.Values, authHeader map[string]string) (*http.Request, error) { - req, err := http.NewRequest(method, uri, nil) + req, err := http.NewRequest(method, uri, body) if err != nil { return nil, err }