From 50f348d83b888ff8f2787189149691c80cf9a586 Mon Sep 17 00:00:00 2001 From: Sundance Date: Wed, 10 Feb 2021 10:35:28 +0300 Subject: [PATCH] fix create sign for urls containing spechial chars: !'()#*+? and non latin chars --- lib/client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/client.js b/lib/client.js index ea2b3ed..3008dcb 100644 --- a/lib/client.js +++ b/lib/client.js @@ -854,7 +854,7 @@ Client.prototype.https = function(filename){ Client.prototype.signedUrl = function(filename, expiration, options){ var epoch = Math.floor(expiration.getTime()/1000) - , pathname = url.parse(filename).pathname + , pathname = url.parse(encodeSpecialCharacters(filename)).pathname , resource = '/' + this.bucket + ensureLeadingSlash(pathname); if (options && options.qs) {