Skip to content

Commit ca871ca

Browse files
committed
s3.setEndpoint()
1 parent 9fb809d commit ca871ca

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
* The 'closed' events of the HTTPS response are treated as errors. The AWS APIs should end the request cleanly. Normally they do.
33
* Avoids the node.js issue [#1399](https://github.com/joyent/node/issues/1399), which is still undecided, by having a state indicating that the HTTPS request isn't aborted. Basically this workaround removes the [backport-0.4](https://github.com/SaltwaterC/backport-0.4) dependency as crashing the process can be avoided without bundling my own http.js + https.js.
44
* Adds the client.getApiVersion() method in order to indicate which is the default or defined API version. The query APIs support this feature. This is an elegant way of wrapping client.query.Version which may be an arcane methodology for outsiders. Usually useful for debugging.
5-
* Adds the client.setApiVersion() method for setting the API version. The query APIs support this feature.
5+
* Adds the client.setApiVersion() method for setting the API version. The query APIs support this feature.
6+
* Adds s3.setEndpoint() helper for the S3 client.
67
* Updates the EC2 API client to default to version 2011-07-15.
78
* Updates the ELB API client to default to version 2011-08-15.
89
* Updates the AutoScaling API client to default to version 2011-01-01.

lib/aws.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -605,6 +605,10 @@ var client = function (config) {
605605
});
606606
};
607607

608+
config.setEndpoint = function (endpoint) {
609+
config.setBucket(endpoint);
610+
};
611+
608612
config.createBucket = function (bucket, acl, region, callback) {
609613
config.setBucket(bucket);
610614
var headers = {'x-amz-acl': 'private'};

0 commit comments

Comments
 (0)