Skip to content

Commit 472db02

Browse files
committed
fix after merge
1 parent e11dab1 commit 472db02

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/client.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1022,7 +1022,7 @@ Client.prototype.list = function(params, headers, fn){
10221022
*/
10231023

10241024
Client.prototype.http = function(filename){
1025-
filename = ensureLeadingSlash(filename);
1025+
filename = encodeSpecialCharacters(ensureLeadingSlash(filename));
10261026

10271027
return 'http://' + this.urlBase + filename;
10281028
};
@@ -1036,7 +1036,7 @@ Client.prototype.http = function(filename){
10361036
*/
10371037

10381038
Client.prototype.https = function(filename){
1039-
filename = ensureLeadingSlash(filename);
1039+
filename = encodeSpecialCharacters(ensureLeadingSlash(filename));
10401040

10411041
return 'https://' + this.urlBase + filename;
10421042
};

0 commit comments

Comments
 (0)