mirror of https://github.com/therootcompany/s3.js
treat host properly
This commit is contained in:
parent
857a7aa76c
commit
9a22677b4b
8
index.js
8
index.js
|
@ -45,7 +45,7 @@ module.exports = {
|
||||||
}
|
}
|
||||||
var signed = aws4.sign(
|
var signed = aws4.sign(
|
||||||
{
|
{
|
||||||
host: host || bucket + '.s3.amazonaws.com',
|
host: host || (bucket + '.s3.amazonaws.com'),
|
||||||
service: 's3',
|
service: 's3',
|
||||||
region: region,
|
region: region,
|
||||||
path: (host ? '/' + bucket : '') + '/' + prefix + key,
|
path: (host ? '/' + bucket : '') + '/' + prefix + key,
|
||||||
|
@ -89,7 +89,7 @@ module.exports = {
|
||||||
}
|
}
|
||||||
var signed = aws4.sign(
|
var signed = aws4.sign(
|
||||||
{
|
{
|
||||||
host: host || bucket + '.s3.amazonaws.com',
|
host: host || (bucket + '.s3.amazonaws.com'),
|
||||||
service: 's3',
|
service: 's3',
|
||||||
region: region,
|
region: region,
|
||||||
path: (host ? '/' + bucket : '') + '/' + prefix + key,
|
path: (host ? '/' + bucket : '') + '/' + prefix + key,
|
||||||
|
@ -144,7 +144,7 @@ module.exports = {
|
||||||
}
|
}
|
||||||
var signed = aws4.sign(
|
var signed = aws4.sign(
|
||||||
{
|
{
|
||||||
host: host || bucket + '.s3.amazonaws.com',
|
host: host || (bucket + '.s3.amazonaws.com'),
|
||||||
service: 's3',
|
service: 's3',
|
||||||
region: region,
|
region: region,
|
||||||
path: (host ? '/' + bucket : '') + '/' + prefix + key,
|
path: (host ? '/' + bucket : '') + '/' + prefix + key,
|
||||||
|
@ -193,7 +193,7 @@ module.exports = {
|
||||||
}
|
}
|
||||||
var signed = aws4.sign(
|
var signed = aws4.sign(
|
||||||
{
|
{
|
||||||
host: host || bucket + '.s3.amazonaws.com',
|
host: host || (bucket + '.s3.amazonaws.com'),
|
||||||
service: 's3',
|
service: 's3',
|
||||||
region: region,
|
region: region,
|
||||||
path: (host ? '/' + bucket : '') + '/' + prefix + key,
|
path: (host ? '/' + bucket : '') + '/' + prefix + key,
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@root/s3",
|
"name": "@root/s3",
|
||||||
"version": "1.0.2",
|
"version": "1.0.3",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@root/s3",
|
"name": "@root/s3",
|
||||||
"version": "1.0.2",
|
"version": "1.0.3",
|
||||||
"description": "A simple, lightweight s3 client with only 2 dependencies",
|
"description": "A simple, lightweight s3 client with only 2 dependencies",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"files": [
|
"files": [
|
||||||
|
|
Loading…
Reference in New Issue