fix flashrom yet again

This commit is contained in:
zefie
2021-08-10 01:17:39 -04:00
parent 28adff5a59
commit 5083b51c6b
5 changed files with 7 additions and 6 deletions

View File

@@ -14,7 +14,7 @@ class WTVFlashrom {
this.service_name = service_name;
this.use_zefie_server = use_zefie_server;
this.bf0app_update = bf0app_update;
this.zdebug = true;
this.zdebug = debug;
}
@@ -138,7 +138,7 @@ class WTVFlashrom {
var flashrom_info = this.getFlashromInfo(data, request_path)
if (flashrom_info.is_bootrom) headers += "Content-Type: binary/x-wtv-bootrom"; // maybe?
else headers += "Content-Type: binary/x-wtv-flashblock";
if (flashrom_info.next_rompath != null) headers += "\nwtv-visit: " + flashrom_info.next_rompath;
if (flashrom_info.next_rompath != null && this.bf0app_update) headers += "\nwtv-visit: " + flashrom_info.next_rompath;
callback(data, headers);
}