Skip to content

Commit

Permalink
Made the POST method to be able to initiate / complete the multipart …
Browse files Browse the repository at this point in the history
…uploads. Removed the unrelated code.
  • Loading branch information
Saltwater committed Jan 28, 2012
1 parent a998353 commit 29fd64c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
4 changes: 2 additions & 2 deletions lib/aws.js
Expand Up @@ -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
Expand All @@ -335,7 +335,7 @@ var client = function (config) {
method: 'POST',
path: path,
headers: hdrs
}, body, null, callback);
}, body, 'xml', callback);
}
}
);
Expand Down
7 changes: 0 additions & 7 deletions lib/internals.js
Expand Up @@ -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;

0 comments on commit 29fd64c

Please sign in to comment.