From deeb996bf514cac8de6d15355d3097de62e12b93 Mon Sep 17 00:00:00 2001 From: Greg Walker Date: Sat, 16 Sep 2023 19:40:36 -0500 Subject: [PATCH] oop x 9 --- .github/workflows/integrity-check.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/integrity-check.yml b/.github/workflows/integrity-check.yml index be089b68f..a2040f553 100644 --- a/.github/workflows/integrity-check.yml +++ b/.github/workflows/integrity-check.yml @@ -93,8 +93,10 @@ jobs: } on += 1; - const remoteText = await fetch(url).then((response) => response.text()); - const remoteHash = md5(remoteText); + const remoteBuffer = await fetch(url) + .then((response) => response.arrayBuffer()) + .then((blob) => Buffer.from(blob)); + const remoteHash = md5(remoteBuffer); if (expectedHash !== remoteHash) { mismatch.push({ expectedHash, remoteHash, url });