- numerous bug fixes - add UTV tellyscripts - BREAKING CHANGE: doErrorPage moved to wtvshared.doErrorPage - but I fixed flashrom error handling.. - added a passthrough for old scripts - added eMac's lzpf compression - Bump vm2 from 3.9.3 to 3.9.5 in /zefie_wtvp_minisrv
19 lines
802 B
JavaScript
19 lines
802 B
JavaScript
var minisrv_service_file = true;
|
|
|
|
if (request_headers.query.path) {
|
|
var url = service_name + ":/get-lc2-page?path=" + request_headers.query.path;
|
|
var romtype = ssid_sessions[socket.ssid].get("wtv-client-rom-type");
|
|
if (romtype == "bf0app") {
|
|
url = "client:updateflash?ipaddr=" + minisrv_config.services[service_name].host + "&port=" + minisrv_config.services[service_name].port + "&path=" + escape(service_name + ":/" +request_headers.query.path);
|
|
if (request_headers.query.numparts) url += escape("?numparts=" + request_headers.query.numparts);
|
|
}
|
|
headers = "300 OK\n";
|
|
headers += "wtv-visit: " + url + "\n";
|
|
headers += "Location: " + url + "\n";
|
|
headers += "Content-type: text/html";
|
|
data = '';
|
|
} else {
|
|
var errpage = wtvshared.doErrorPage(400)
|
|
headers = errpage[0];
|
|
data = errpage[1];
|
|
} |