Skip to content

Commit

Permalink
Merge pull request #124 from typhoonzero/fix_restclient
Browse files Browse the repository at this point in the history
Fix restclient
  • Loading branch information
typhoonzero authored Jun 5, 2017
2 parents a0d4da5 + 4595d2e commit e82c533
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/paddlecloud/restclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit e82c533

Please sign in to comment.