fix: LC2+ flashrom upgrades were looping

This commit is contained in:
zefie
2021-08-13 14:53:54 -04:00
parent 743d246e93
commit 9f28c97943
2 changed files with 7 additions and 2 deletions

View File

@@ -92,10 +92,13 @@ data += `
<upgradeblock width=280 height=15 <upgradeblock width=280 height=15
nexturl="${flashrom_info.next_rompath}" nexturl="${flashrom_info.next_rompath}"
errorurl="${service_name}:/lc2-download-failed?" errorurl="${service_name}:/lc2-download-failed?"
blockurl="${flashrom_info.rompath}" `
if (!flashrom_info.is_last_part) data += `blockurl = "${flashrom_info.rompath}"`;
data += `
lastblock="${flashrom_info.is_last_part}" lastblock="${flashrom_info.is_last_part}"
curblock="` + (flashrom_info.part_number + 1) + `" curblock="` + (flashrom_info.part_number + 1) + `"
` `;
if (flashrom_info.part_count) { if (flashrom_info.part_count) {
data += `totalblocks="${flashrom_info.part_count}"`; data += `totalblocks="${flashrom_info.part_count}"`;
} }

View File

@@ -1,4 +1,6 @@
headers = `200 OK headers = `200 OK
Connection: Close
wtv-connection-close: true
Content-type: text/html` Content-type: text/html`
data = `<html> data = `<html>