Skip to content

Commit 03a018b

Browse files
author
gavinhgchen
committed
continue...
1 parent 438075e commit 03a018b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/cos_api.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ std::string CosAPI::GetObjectUrl(const std::string& bucket,
496496
if (https) {
497497
object_url = "https://";
498498
} else {
499-
object_url = "http://";
499+
object_url = "http://"; // NOCA:HttpHardcoded(ignore)
500500
}
501501
std::string destdomain = m_config->GetDestDomain().empty() ?
502502
CosSysConfig::GetDestDomain() : m_config->GetDestDomain();

src/op/base_op.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ std::string BaseOp::GetRealUrl(const std::string& host, const std::string& path,
391391
std::string dest_uri;
392392
std::string dest_host = host;
393393
std::string dest_path = path;
394-
std::string dest_protocal = "http://";
394+
std::string dest_protocal = "http://"; // NOCA:HttpHardcoded(ignore)
395395
if (is_https) {
396396
dest_protocal = "https://";
397397
}

src/util/file_util.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ uint64_t FileUtil::GetFileCrc64(const std::string& file) {
9494
uint64_t FileUtil::GetFileCrc64(const std::wstring& file) {
9595
std::fstream f(file, std::ios::in | std::ios::binary);
9696
// NOCA:VariableLengthArrays(设计如此)
97-
const static int buffer_size = 2048;
97+
const static int buffer_size = 2048; // NOCA:runtime/arrays(ignore)
9898
char buffer[buffer_size];
9999
uint64_t crc64 = 0;
100100
while (f.good()) {

0 commit comments

Comments
 (0)