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()