Comparing version 0.5.3 to 0.5.4
@@ -136,3 +136,3 @@ | ||
exports.queryStringToSign = function(options){ | ||
return 'GET\n\n\n' + | ||
return (options.verb || 'GET') + '\n\n\n' + | ||
options.date + '\n' + | ||
@@ -139,0 +139,0 @@ options.resource; |
@@ -725,3 +725,3 @@ /*! | ||
Client.prototype.signedUrl = function(filename, expiration, otherParams){ | ||
Client.prototype.signedUrl = function(filename, expiration, otherParams, verb){ | ||
var epoch = Math.floor(expiration.getTime()/1000) | ||
@@ -732,3 +732,3 @@ , pathname = url.parse(filename).pathname | ||
if (otherParams) { | ||
resource += '?' + qs.stringify(otherParams); | ||
resource += '?' + decodeURIComponent(qs.stringify(otherParams)); | ||
} | ||
@@ -740,2 +740,3 @@ | ||
, resource: resource | ||
, verb: verb || 'GET' | ||
}); | ||
@@ -742,0 +743,0 @@ |
@@ -9,3 +9,3 @@ { | ||
], | ||
"version": "0.5.3", | ||
"version": "0.5.4", | ||
"author": "TJ Holowaychuk <tj@learnboost.com>", | ||
@@ -12,0 +12,0 @@ "contributors": [ |
888
35394