Skip to content

Commit 464fbdd

Browse files
author
jeffreykzli
committed
update recover demo
1 parent 96f6a58 commit 464fbdd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/qcloud/cos/demo/RecoverObjectsDemo2.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ private static COSClient createCli(String region) {
4141
// 2 设置bucket的区域, COS地域的简称请参照 https://www.qcloud.com/document/product/436/6224
4242
ClientConfig clientConfig = new ClientConfig(new Region(region));
4343

44-
clientConfig.setHttpProtocol(HttpProtocol.http);
44+
clientConfig.setHttpProtocol(HttpProtocol.https);
4545
// 生成cos客户端
4646
return new COSClient(cred, clientConfig);
4747
}

0 commit comments

Comments
 (0)