bugfix using manual host (minio) for bucket

This commit is contained in:
AJ ONeal 2020-09-18 04:27:52 -06:00
parent 0914b9bba7
commit 858b20f555
1 changed files with 4 additions and 4 deletions

View File

@ -41,7 +41,7 @@ module.exports = S3 = {
}
var signed = aws4.sign(
{
host: host || bucket + '.s3.amazonaws.com',
host: host || (bucket + '.s3.amazonaws.com'),
service: 's3',
region: region,
path: (host ? '/' + bucket : '') + '/' + prefix + key,
@ -91,7 +91,7 @@ module.exports = S3 = {
}
var signed = aws4.sign(
{
host: host || bucket + '.s3.amazonaws.com',
host: host || (bucket + '.s3.amazonaws.com'),
service: 's3',
region: region,
path: (host ? '/' + bucket : '') + '/' + prefix + key,
@ -152,7 +152,7 @@ module.exports = S3 = {
}
var signed = aws4.sign(
{
host: host || bucket + '.s3.amazonaws.com',
host: host || (bucket + '.s3.amazonaws.com'),
service: 's3',
region: region,
path: (host ? '/' + bucket : '') + '/' + prefix + key,
@ -196,7 +196,7 @@ module.exports = S3 = {
}
var signed = aws4.sign(
{
host: host || bucket + '.s3.amazonaws.com',
host: host || (bucket + '.s3.amazonaws.com'),
service: 's3',
region: region,
path: (host ? '/' + bucket : '') + '/' + prefix + key,