From a98da27e055159ee723a50578dc1556c15d82b37 Mon Sep 17 00:00:00 2001 From: z Date: Fri, 25 Nov 2022 23:05:44 +0800 Subject: [PATCH] refactor: relative protocol for weinre --- lib/inspectors/weinre.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/inspectors/weinre.js b/lib/inspectors/weinre.js index 01f5b81f9..f737486b7 100644 --- a/lib/inspectors/weinre.js +++ b/lib/inspectors/weinre.js @@ -11,7 +11,7 @@ var weinreHtmlScript = '\r\n\r\n'; function getScript(host, name, isHtml, req) { host = util.getInternalHost(req, host); var weinrePath = - (req.isHttps ? 'https://' : 'http://') + + '//' + host + config.WEBUI_PATH + 'weinre.' +