forked from Automattic/knox
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix for buckets in regions other than US east
The other regions require that you put the bucket into the endpoint (hostname). So instead of sending the request to s3.amazonaws.com/bucketname/key you need to use bucketname.s3.amazonaws.com/key. But the resource path that is part of the signature is still /bucketname/key. Signed-off-by: Tj Holowaychuk <tj@vision-media.ca>
- Loading branch information
1 parent
aa41cae
commit 2f28de9
Showing
2 changed files
with
22 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters