- convert post_data to query if valid query data - wtv-register system - Store Session data as JSON flat file - wtv-cookie support - spent way too much time on a page no one will read - move filterSSID to WTVClientSessionData - disable compression until fixed - do not delete WTVSec on last socket, instead recreate on prereg - set 'wtv-bypass-proxy' to false - rework header whitelist system for HTTP(s) proxy - clean up SSID session data only if client is not seen for 3 minutes - add shouldWeCompress() function - add additional headers to wtv-setup:/get - add initial blank wtv-music:/get-playlist - update: WTVClientCapabilities: add unknown bits instead of logging error - update: fix flashrom system - update: webone example config - update: app.js: more 'binary block' exclusions - update: fix tellyscript folder name for case-sensitive filesystems - add Lzpf compression
18 lines
549 B
JavaScript
18 lines
549 B
JavaScript
if (request_headers.post_data) {
|
|
if (request_headers.query.domain && request_headers.query.path) {
|
|
if (socket.ssid) {
|
|
if (ssid_sessions[socket.ssid]) {
|
|
|
|
data = ssid_sessions[socket.ssid].getCookieString(unescape(request_headers.query.domain), unescape(request_headers.query.path));
|
|
headers = "200 OK\n";
|
|
headers += "Content-Type: text/plain";
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
if (!headers) {
|
|
var errpage = doErrorPage(400)
|
|
headers = errpage[0];
|
|
data = errpage[1];
|
|
} |