Skip to content

Commit

Permalink
trim and lowercase MD5 strings before compare
Browse files Browse the repository at this point in the history
  • Loading branch information
dkerr64 authored and jgstroud committed Apr 30, 2024
1 parent 25397a4 commit b50675e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/www/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ async function firmwareUpdate(github = true) {
}
}
else {
expectedMD5 = await response.text();
expectedMD5 = (await response.text()).trim().toLowerCase();
console.log(`Expected firmware MD5: ${expectedMD5}`);
}
response = await fetch(serverStatus.downloadURL, {
Expand Down

0 comments on commit b50675e

Please sign in to comment.