diff --git a/lib/aws.js b/lib/aws.js index 332fbe5..77bd075 100644 --- a/lib/aws.js +++ b/lib/aws.js @@ -311,7 +311,7 @@ var client = function (config) { ); }; /** - * Wraps the POST requests to the S3 API + * Wraps the POST requests to the S3 API for the multipart initiate / complete operations * @param path * @param headers * @param body @@ -335,7 +335,7 @@ var client = function (config) { method: 'POST', path: path, headers: hdrs - }, body, null, callback); + }, body, 'xml', callback); } } ); diff --git a/lib/internals.js b/lib/internals.js index 49d5b58..b445d5e 100644 --- a/lib/internals.js +++ b/lib/internals.js @@ -534,10 +534,3 @@ var squashApiVersion = function (config) { return config.query.Version.replace(/-/g, ''); }; exports.squashApiVersion = squashApiVersion; -/** - * Returns the boundary for the multipart/form-data - */ -var formBoundary = function () { - return Math.random().toString(16).substring(2) + '--aws2js--' + new Date().getTime().toString(16); -}; -exports.formBoundary = formBoundary;