From fa2b02f6780bcd836cdb7d093a046f45e594d9b5 Mon Sep 17 00:00:00 2001 From: Dorian Niemiec Date: Fri, 19 Apr 2024 22:24:53 +0200 Subject: [PATCH] Fix path-based reverse proxy request URLs --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index a60767e..dbf9cf9 100644 --- a/index.js +++ b/index.js @@ -56,7 +56,7 @@ Mod.prototype.callback = function callback(req, res, serverconsole, responseEnd, if(preparedPath == matchingHostname) { preparedPath = "/"; } else { - preparedPath = preparedPath.replace(matchingHostname + "/",""); + preparedPath = preparedPath.replace(matchingHostname.substring(1) + "/",""); if(preparedPath == "") preparedPath = "/"; } }