Skip to content

Commit 7ffbcd6

Browse files
committed
bugfix of del and update
1 parent 8b15703 commit 7ffbcd6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Cosapi.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ int Cosapi::update(
592592
snprintf(fileId, sizeof(fileId),
593593
"/%lu/%s%s", APPID,
594594
bucketName.c_str(),
595-
path.c_str());
595+
encodePath.c_str());
596596
string sign =
597597
Auth::appSign_once(
598598
APPID, SECRET_ID, SECRET_KEY,
@@ -666,7 +666,7 @@ int Cosapi::del(
666666
snprintf(fileId, sizeof(fileId),
667667
"/%lu/%s%s", APPID,
668668
bucketName.c_str(),
669-
path.c_str());
669+
encodePath.c_str());
670670
string sign =
671671
Auth::appSign_once(
672672
APPID, SECRET_ID, SECRET_KEY,

0 commit comments

Comments
 (0)