Skip to content

Commit d5c2f64

Browse files
committed
fix: default scheme settings to https
1 parent f00df50 commit d5c2f64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/imageRouter/s3.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ exports.uploadImage = function (imagePath, callback) {
5151
// default scheme settings to https
5252
let s3Endpoint = 'https://s3.amazonaws.com'
5353
if (config.s3.region && config.s3.region !== 'us-east-1') {
54-
s3Endpoint = `s3-${config.s3.region}.amazonaws.com`
54+
s3Endpoint = `https://s3-${config.s3.region}.amazonaws.com`
5555
}
5656
// rewrite endpoint from config
5757
if (config.s3.endpoint) {

0 commit comments

Comments
 (0)