From c70e078b266d12bae4cb3159859438ffc83ea9d6 Mon Sep 17 00:00:00 2001 From: Dorian Niemiec Date: Tue, 19 Mar 2024 17:16:13 +0100 Subject: [PATCH] Update to SVR.JS 3.14.7 --- index.html | 12 +++--------- licenses/index.html | 8 ++++---- svr.js | 4 ++-- tests.html | 11 ++--------- 4 files changed, 11 insertions(+), 24 deletions(-) diff --git a/index.html b/index.html index 69ee55d..024ef29 100644 --- a/index.html +++ b/index.html @@ -1,7 +1,7 @@ - SVR.JS 3.14.6 + SVR.JS 3.14.7 -

Welcome to SVR.JS 3.14.6

+

Welcome to SVR.JS 3.14.7



@@ -85,13 +85,7 @@

Changes:

Tests
diff --git a/licenses/index.html b/licenses/index.html index d629b68..66762f6 100644 --- a/licenses/index.html +++ b/licenses/index.html @@ -1,7 +1,7 @@ - SVR.JS 3.14.6 Licenses + SVR.JS 3.14.7 Licenses -

SVR.JS 3.14.6 Licenses

-

SVR.JS 3.14.6

+

SVR.JS 3.14.7 Licenses

+

SVR.JS 3.14.7

MIT License

@@ -37,7 +37,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
-

Packages used by SVR.JS 3.14.6

+

Packages used by SVR.JS 3.14.7

License: MIT
diff --git a/svr.js b/svr.js index 6f0a1f8..e165548 100644 --- a/svr.js +++ b/svr.js @@ -69,7 +69,7 @@ function deleteFolderRecursive(path) { } var os = require("os"); -var version = "3.14.6"; +var version = "3.14.7"; var singlethreaded = false; if (process.versions) process.versions.svrjs = version; // Inject SVR.JS into process.versions @@ -3057,7 +3057,7 @@ if (!cluster.isPrimary) { if (!req.headers.host.match(/^\.+$/)) req.headers.host = req.headers.host.replace(/\.$/g, ""); } - serverconsole.reqmessage("Client " + ((!reqip || reqip == "") ? "[unknown client]" : (reqip + ((reqport && reqport !== 0) && reqport != "" ? ":" + reqport : ""))) + " wants " + (req.method == "GET" ? "content in " : (req.method == "POST" ? "to post content in " : (req.method == "PUT" ? "to add content in " : (req.method == "DELETE" ? "to delete content in " : (req.method == "PATCH" ? "to patch content in " : "to access content using " + req.method + " method in "))))) + ((req.headers.host == undefined || !isProxy) ? "" : req.headers.host) + req.url); + serverconsole.reqmessage("Client " + ((!reqip || reqip == "") ? "[unknown client]" : (reqip + ((reqport && reqport !== 0) && reqport != "" ? ":" + reqport : ""))) + " wants " + (req.method == "GET" ? "content in " : (req.method == "POST" ? "to post content in " : (req.method == "PUT" ? "to add content in " : (req.method == "DELETE" ? "to delete content in " : (req.method == "PATCH" ? "to patch content in " : "to access content using " + req.method + " method in "))))) + ((req.headers.host == undefined || isProxy) ? "" : req.headers.host) + req.url); if (req.headers["user-agent"] != undefined) serverconsole.reqmessage("Client uses " + req.headers["user-agent"]); if (oldHostHeader && oldHostHeader != req.headers.host) serverconsole.resmessage("Host name rewritten: " + oldHostHeader + " => " + req.headers.host); diff --git a/tests.html b/tests.html index 40e8e96..bf012a5 100644 --- a/tests.html +++ b/tests.html @@ -1,7 +1,7 @@ - SVR.JS 3.14.6 Tests + SVR.JS 3.14.7 Tests -

SVR.JS 3.14.6 Tests

+

SVR.JS 3.14.7 Tests

Directory (without trailing slash)

Directory (with query)

@@ -21,13 +21,6 @@

404 Error

- -

500 Error

-

Server Side Javascript

Proxy test