diff --git a/src/files.js b/src/files.js index 7057f36a80230a56b55c9d5554d56f91c795cd00..b4ec6cdbb516fcaf6bcbeb759912122b1e9ac500 100644 --- a/src/files.js +++ b/src/files.js @@ -9,7 +9,7 @@ const logger = getLogger() async function fetchData (path, baseUrl) { const response = await fetch(new URL(path, baseUrl)) if (!response.ok) throw new Error(`Error fetching file: ${path}`) - const content = await response.buffer() + const content = await response.text() const sha256Sum = crypto.createHash('sha256').update(content).digest('base64') return [path, { 'content-type': response.headers.get('content-type'),