Skip to content

Commit 1027077

Browse files
committed
Use Buffer.alloc in HmacSha256Sign.
1 parent 23d961f commit 1027077

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/common/signing/hmacsha256sign.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ var crypto = require('crypto');
2424
*/
2525
function HmacSha256Sign(accessKey) {
2626
this._accessKey = accessKey;
27-
this._decodedAccessKey = new Buffer(this._accessKey, 'base64');
27+
this._decodedAccessKey = Buffer.from(this._accessKey, 'base64');
2828
}
2929

3030
/**

0 commit comments

Comments
 (0)