var minisrv_service_file = true; var WTVAdmin = require(classPath + "/WTVAdmin.js"); var wtva = new WTVAdmin(minisrv_config, session_data, service_name); var auth = wtva.isAuthorized(); if (auth === true) { var password = null; if (request_headers.Authorization) { var authheader = request_headers.Authorization.split(' '); if (authheader[0] == "Basic") { password = Buffer.from(authheader[1], 'base64').toString(); if (password) password = password.split(':')[1]; } } if (wtva.checkPassword(password)) { headers = "200 OK\r\nContent-Type: text/html"; data = `