From 4bbcee9df2055673d2a84d4618ec7af4cdeedcfd Mon Sep 17 00:00:00 2001 From: Dorian Niemiec Date: Thu, 21 Nov 2024 00:19:14 +0100 Subject: [PATCH] chore: release GreenRhombus 1.0.8 --- index.js | 2 +- mod.info | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 8ba874a..71b4171 100644 --- a/index.js +++ b/index.js @@ -596,7 +596,7 @@ Mod.prototype.callback = function (req, res, serverconsole, responseEnd, href, e nEnv["PATH_INFO"] = decodeURIComponent(b); nEnv["PATH_TRANSLATED"] = b ? ((process.cwd() + decodeURIComponent(require("os").platform == "win32" ? b.replace(/\//g, "\\") : b)).replace((require("os").platform == "win32" ? /\\\\/g : /\/\//g), (require("os").platform == "win32" ? "\\" : "/"))) : ""; nEnv["REQUEST_METHOD"] = req.method; - nEnv["REQUEST_URI"] = (!origHref || origHref == href) ? req.url : (origHref + (uobject.search ? ("?" + uobject.search) : "")); + nEnv["REQUEST_URI"] = (!origHref || origHref == href) ? req.url : (origHref + (uobject.search ? ((uobject.search[0] == "?" ? "" : "?") + uobject.search) : "")); nEnv["REMOTE_ADDR"] = (req.socket.realRemoteAddress ? req.socket.realRemoteAddress : ((req.headers["x-forwarded-for"] && configJSON.enableIPSpoofing) ? req.headers["x-forwarded-for"].split(",")[0].replace(/ /g, "") : req.socket.remoteAddress)).replace(/^::ffff:/i, ""); if (req.socket.realRemoteAddress && req.socket.realRemotePort) { nEnv["REMOTE_PORT"] = req.socket.realRemotePort; diff --git a/mod.info b/mod.info index 34c02da..1111b71 100755 --- a/mod.info +++ b/mod.info @@ -1,4 +1,4 @@ { "name": "GreenRhombus FastCGI client for SVR.JS", - "version": "1.0.7" + "version": "1.0.8" }