We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 968eafa commit 06304b9Copy full SHA for 06304b9
sdk/util.js
@@ -96,9 +96,7 @@ var getAuth = function (opt) {
96
formatString = Buffer.from(formatString, 'utf8');
97
98
// 步骤三:计算 StringToSign
99
- var sha1Algo = crypto.createHash('sha1');
100
- sha1Algo.update(formatString);
101
- var res = sha1Algo.digest('hex');
+ var res = crypto.createHash('sha1').update(formatString).digest('hex');
102
var stringToSign = ['sha1', qSignTime, res, ''].join('\n');
103
104
// 步骤四:计算 Signature
0 commit comments