From 0562a47366a96903b71fa541dc321d44689aa66f Mon Sep 17 00:00:00 2001 From: Piero Toffanin Date: Wed, 18 Oct 2023 13:44:00 -0400 Subject: [PATCH] Fix non-AWS ASR download endpoint --- libs/proxy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/proxy.js b/libs/proxy.js index 03e76d6..db93be1 100644 --- a/libs/proxy.js +++ b/libs/proxy.js @@ -527,7 +527,7 @@ module.exports = { // If URL requires authentication, fetch the object on their behalf and then stream it to them // If our aws library gets updated to v3, then we could return a redirect to a presigned url instead - if (s3Config != null && s3Config.acl !== "public-read") { + if (s3Config && s3Config.acl !== undefined && s3Config.acl !== "public-read") { let key = path.join(taskId, assetPath) const s3 = new AWS.S3({