Comparing version 0.8.6 to 0.8.7
@@ -0,0 +0,0 @@ "use strict"; |
@@ -86,3 +86,3 @@ "use strict"; | ||
// some reason. | ||
return filename.replace(/[!'()* ]/g, function (char) { | ||
return encodeURI(filename).replace(/[!'()* ]/g, function (char) { | ||
return '%' + char.charCodeAt(0).toString(16); | ||
@@ -174,3 +174,3 @@ }); | ||
function getCopyHeaders(sourceBucket, sourceFilename, headers) { | ||
sourceFilename = ensureLeadingSlash(sourceFilename); | ||
sourceFilename = encodeSpecialCharacters(ensureLeadingSlash(sourceFilename)); | ||
headers = utils.merge({ | ||
@@ -687,3 +687,3 @@ Expect: '100-continue' | ||
function makeDeleteXmlString(keys) { | ||
function makeDeleteXmlBuffer(keys) { | ||
var tags = keys.map(function(key){ | ||
@@ -694,3 +694,4 @@ return '<Object><Key>' + | ||
}); | ||
return '<Delete>' + tags.join('') + '</Delete>'; | ||
return new Buffer('<?xml version="1.0" encoding="UTF-8"?>' + | ||
'<Delete>' + tags.join('') + '</Delete>', 'utf8'); | ||
} | ||
@@ -719,3 +720,3 @@ | ||
var xml = makeDeleteXmlString(filenames); | ||
var xml = makeDeleteXmlBuffer(filenames); | ||
@@ -722,0 +723,0 @@ headers['Content-Length'] = xml.length; |
@@ -9,3 +9,3 @@ { | ||
], | ||
"version": "0.8.6", | ||
"version": "0.8.7", | ||
"author": "TJ Holowaychuk <tj@learnboost.com>", | ||
@@ -12,0 +12,0 @@ "contributors": [ |
@@ -0,0 +0,0 @@ # knox |
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
45904
1038