Skip to content

Commit 1b33ea8

Browse files
committed
builder timestamp condition
1 parent ab77030 commit 1b33ea8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/url/builder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,5 +161,5 @@ function getSignatureTimestamp(seconds) {
161161
function getSignature(opts) {
162162
if(!opts.privateKey || !opts.url || !opts.urlEndpoint) return "";
163163

164-
return crypto.createHmac('sha1', opts.privateKey).update(opts.url.replace(opts.urlEndpoint, "") + (opts.expiryTimestamp ? opts.expiryTimestamp : "9999999999")).digest('hex');
164+
return crypto.createHmac('sha1', opts.privateKey).update(opts.url.replace(opts.urlEndpoint, "") + opts.expiryTimestamp).digest('hex');
165165
}

0 commit comments

Comments
 (0)