Skip to content

Commit 50f348d

Browse files
committed
fix create sign for urls containing spechial chars: !'()#*+? and non latin chars
1 parent 6b6b80a commit 50f348d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -854,7 +854,7 @@ Client.prototype.https = function(filename){
854854

855855
Client.prototype.signedUrl = function(filename, expiration, options){
856856
var epoch = Math.floor(expiration.getTime()/1000)
857-
, pathname = url.parse(filename).pathname
857+
, pathname = url.parse(encodeSpecialCharacters(filename)).pathname
858858
, resource = '/' + this.bucket + ensureLeadingSlash(pathname);
859859

860860
if (options && options.qs) {

0 commit comments

Comments
 (0)