Skip to content

Commit

Permalink
Fix non-AWS ASR download endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
pierotofy committed Oct 18, 2023
1 parent ba33178 commit 0562a47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 0562a47

Please sign in to comment.