From e6127a1a5a0f9ca0c68b9bc7529a5818a48aea55 Mon Sep 17 00:00:00 2001 From: zefie Date: Sun, 16 Feb 2025 18:02:18 -0500 Subject: [PATCH] include big-willie.js --- .../ServiceVault/wtv-flashrom/big-willie.js | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 zefie_wtvp_minisrv/includes/ServiceVault/wtv-flashrom/big-willie.js diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/wtv-flashrom/big-willie.js b/zefie_wtvp_minisrv/includes/ServiceVault/wtv-flashrom/big-willie.js new file mode 100644 index 00000000..3287a4bc --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/wtv-flashrom/big-willie.js @@ -0,0 +1,27 @@ +var minisrv_service_file = true; +var request_is_async = true; + +var options = { + host: "flashrom.webtv.onl", + port: 443, + path: "/big-willie.html" +}; + +var data = ""; +console.log(" * Getting Big Willie Page"); + +var req = https.request(options, function(res) { + res.setEncoding("utf8"); + res.on("data", function (chunk) { + data += chunk; + }); + + res.on("end", function () { + headers = "200 OK\n"; + headers += "Content-Type: text/html"; + sendToClient(socket,headers,data) + }); +}); + + +req.end(); \ No newline at end of file