I am currently using aws-sdk to download file from S3 using node.js.
var s3 = new AWS.S3();
var params = {
Bucket: bucket,
Key: directory + file,
Expires: 300
};
var url = s3.getSignedUrl('getObject', params);
res.redirect(url);
And it is giving me a link with https.
https://mybucket.s3.amazonaws.com/.......qNBK%2BzP48%3D
Is there a way to get link with http instead of https? Thanks.