fix potential issue with local flashroms

This commit is contained in:
zefie
2021-08-09 18:42:29 -04:00
parent 65b2a2061a
commit e359644998
4 changed files with 8 additions and 9 deletions

View File

@@ -22,10 +22,10 @@ if (request_headers.query.raw || bf0app_update) {
sendToClient(socket, headers, data);
});
} else {
headers = "200 OK\n"
if (request_headers.query.path) {
headers += "Content-type: text/html\n"
headers += "wtv-visit: " + service_name + ":/initiate-lc2-download?path=" + request_headers.query.path;
headers = "200 OK\n"
headers += "wtv-visit: " + service_name + ":/initiate-lc2-download?path=" + request_headers.query.path + "\n";
headers += "Content-type: text/html"
data = '';
} else {
var errpage = doErrorPage(404)