Comparing version 0.5.4 to 0.5.5
@@ -61,3 +61,3 @@ | ||
exports.hmacSha1 = function(options){ | ||
return crypto.createHmac('sha1', options.secret).update(options.message).digest('base64'); | ||
return crypto.createHmac('sha1', options.secret).update(new Buffer(options.message, 'utf-8')).digest('base64'); | ||
}; | ||
@@ -139,2 +139,4 @@ | ||
options.date + '\n' + | ||
(typeof options.token !== 'undefined' ? | ||
'x-amz-security-token:' + options.token + '\n' : '') + | ||
options.resource; | ||
@@ -141,0 +143,0 @@ }; |
@@ -739,2 +739,3 @@ /*! | ||
, verb: verb || 'GET' | ||
, token: this.token | ||
}); | ||
@@ -748,2 +749,5 @@ | ||
if (typeof this.token !== 'undefined') | ||
queryString += '&x-amz-security-token=' + encodeURIComponent(this.token); | ||
return this.url(ensureLeadingSlash(filename)) + '?' + queryString; | ||
@@ -750,0 +754,0 @@ }; |
@@ -9,3 +9,3 @@ { | ||
], | ||
"version": "0.5.4", | ||
"version": "0.5.5", | ||
"author": "TJ Holowaychuk <tj@learnboost.com>", | ||
@@ -12,0 +12,0 @@ "contributors": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
35666
893