From 4595d2e64ddbda683d344eed25ccf4b66463cd54 Mon Sep 17 00:00:00 2001 From: wuyi05 Date: Fri, 2 Jun 2017 19:01:11 +0800 Subject: [PATCH] fix restclient --- go/paddlecloud/restclient.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go/paddlecloud/restclient.go b/go/paddlecloud/restclient.go index 04daea66..07d41364 100644 --- a/go/paddlecloud/restclient.go +++ b/go/paddlecloud/restclient.go @@ -19,7 +19,7 @@ var httpTransport = &http.Transport{} func makeRequest(uri string, method string, body io.Reader, contentType string, query map[string]string, 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 }