From 5bb8d1457c5586bab76d306eba42cff64c296215 Mon Sep 17 00:00:00 2001 From: dbauszus-glx Date: Thu, 21 Mar 2024 16:59:04 +0000 Subject: [PATCH] The request params object may be optional --- mod/provider/cloudfront.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/provider/cloudfront.js b/mod/provider/cloudfront.js index d522ea600..e30c7f403 100644 --- a/mod/provider/cloudfront.js +++ b/mod/provider/cloudfront.js @@ -44,7 +44,7 @@ module.exports = async ref => { if (url.match(/\.json$/i)) return await response.json() - if (ref.params.buffer) return await response.buffer() + if (ref.params?.buffer) return await response.buffer() return await response.text()