From 4c26d972fefea2fb73b435cd2279c7a90dbde9aa Mon Sep 17 00:00:00 2001 From: zefie Date: Thu, 6 Oct 2022 14:55:51 -0700 Subject: [PATCH] potential fix for pcservices issue --- zefie_wtvp_minisrv/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zefie_wtvp_minisrv/app.js b/zefie_wtvp_minisrv/app.js index f469652d..3866f103 100644 --- a/zefie_wtvp_minisrv/app.js +++ b/zefie_wtvp_minisrv/app.js @@ -567,7 +567,7 @@ async function processURL(socket, request_headers) { shortURL_split.shift(); var shortURL_service_path = shortURL_split.join(":"); shortURL = shortURL_service_name + ":/" + shortURL_service_path; - } else if (shortURL.indexOf(":") == -1 && request_headers.request.indexOf("HTTP/1") > 0 && socket.ssid == null) { + } else if (shortURL.indexOf(":") == -1 && request_headers.request.indexOf("HTTP/1") > 0 && request_headers.Host && socket.ssid == null) { if (request_headers.Host) { // PC browsers typically send a Host header if (minisrv_config.services.pc_services) {