Issue-ID: USECASEUI-426
Change-Id: Ic34544f0eff7b68632057979c3663431a33062c2
Signed-off-by: hekeguang <hekeguang@chinamobile.com>
protected void downloadFile(String toscaModelPath, String toPath) throws IOException {
try {
String msbUrl = RestfulServices.getMsbAddress();
- String templateUrl = String.format("http://%s%s", msbUrl, toscaModelPath);
+ String templateUrl = String.format("https://%s%s", msbUrl, toscaModelPath);
logger.info("download Csar File Url is:"+templateUrl);
ResponseBody body = sdcCatalog.downloadCsar(templateUrl).execute().body();
Files.write(body.bytes(),new File(toPath));