- numerous bug fixes
- too much to remember
- rewrote sync system yet again
- more classes
- WTVShared class for shared functions
- clientShowAlert class for easy client:showalert urls
- User File Store
- Can upload with PUT commands in wtv-disk
- Programmically access files with new functions in WTVClientSessionData
- TODO: file browser
- other stuff I can't remember
- work on post data bug
- proper gzip download for disk system (aka WNI reinventing the Content-Encoding: gzip wheel)
- send Last-Modified for static files
- send wtv-checksum for all disk system downloads
- update to v90 modem firmware
- offer kflex with `Old` diskmap
17 lines
758 B
JavaScript
17 lines
758 B
JavaScript
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 = doErrorPage(400)
|
|
headers = errpage[0];
|
|
data = errpage[1];
|
|
} |