diff --git a/modules/cloudbrain/resty.go b/modules/cloudbrain/resty.go index 66d8d52bc..3fb3abc52 100755 --- a/modules/cloudbrain/resty.go +++ b/modules/cloudbrain/resty.go @@ -130,7 +130,7 @@ sendjob: res, err := client.R(). SetHeader("Content-Type", "application/json"). SetAuthToken(TOKEN). - SetBody(map[string]interface{}{"pageIndex": 1, "pageSize": 100}). + SetQueryString("pageIndex=1&pageSize=100"). SetResult(&getImagesResult). Get(HOST + "/rest-server/api/v1/image/list/") @@ -162,7 +162,7 @@ sendjob: res, err := client.R(). SetHeader("Content-Type", "application/json"). SetAuthToken(TOKEN). - SetBody(map[string]interface{}{"pageIndex": 1, "pageSize": 100}). + SetQueryString("pageIndex=1&pageSize=100"). SetResult(&getImagesResult). Get(HOST + "/rest-server/api/v1/image/public/list/")