suryag1201 commented on code in PR #14767:
URL: https://github.com/apache/cloudstack/pull/14767#discussion_r4773135746
##########
server/src/main/java/com/cloud/storage/VolumeApiServiceImpl.java:
##########
@@ -531,7 +531,7 @@ public GetUploadParamsResponse
doInTransaction(TransactionStatus status) throws
GetUploadParamsResponse response = new
GetUploadParamsResponse();
String ssvmUrlDomain =
_configDao.getValue(Config.SecStorageSecureCopyCert.key());
- String protocol = UseHttpsToUpload.value() ? "https" :
"http";
+ String protocol = UseHttpsToUpload.valueIn(zoneId) ?
"https" : "http";
Review Comment:
Agreed, Since these constants are already available in NetUtils class
(NetUtils.HTTP_PROTO and NetUtils.HTTPS_PROTO), so they could potentially be
used instead of string literals to keep the implementation consistent.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]