From 40f100db946171b4a408e4caf4835f4c864db674 Mon Sep 17 00:00:00 2001 From: Dorian Niemiec Date: Sun, 7 Apr 2024 14:24:53 +0200 Subject: [PATCH] Update to SVR.JS 3.14.10 --- index.html | 9 +++------ licenses/index.html | 8 ++++---- svr.js | 4 ++-- tests.html | 4 ++-- 4 files changed, 11 insertions(+), 14 deletions(-) diff --git a/index.html b/index.html index 913b7d8..a3f40ab 100644 --- a/index.html +++ b/index.html @@ -1,7 +1,7 @@ - SVR.JS 3.14.9 + SVR.JS 3.14.10 -

Welcome to SVR.JS 3.14.9

+

Welcome to SVR.JS 3.14.10



@@ -84,10 +84,7 @@

Changes:

Tests
diff --git a/licenses/index.html b/licenses/index.html index 1b63976..815dab5 100644 --- a/licenses/index.html +++ b/licenses/index.html @@ -1,7 +1,7 @@ - SVR.JS 3.14.9 Licenses + SVR.JS 3.14.10 Licenses -

SVR.JS 3.14.9 Licenses

-

SVR.JS 3.14.9

+

SVR.JS 3.14.10 Licenses

+

SVR.JS 3.14.10

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.9

+

Packages used by SVR.JS 3.14.10

License: MIT
diff --git a/svr.js b/svr.js index 05cb8ad..7ba07b9 100644 --- a/svr.js +++ b/svr.js @@ -69,7 +69,7 @@ function deleteFolderRecursive(path) { } var os = require("os"); -var version = "3.14.9"; +var version = "3.14.10"; var singlethreaded = false; if (process.versions) process.versions.svrjs = version; // Inject SVR.JS into process.versions @@ -4242,7 +4242,7 @@ if (!cluster.isPrimary) { // Trailing slash redirection function redirectTrailingSlashes(callback) { - if (!disableTrailingSlashRedirects && href[href.length - 1] != "/" && origHref[origHref.length - 1] != "/") { + if (!isProxy && !disableTrailingSlashRedirects && href[href.length - 1] != "/" && origHref[origHref.length - 1] != "/") { fs.stat("." + decodeURIComponent(href), function (err, stats) { if (err || !stats.isDirectory()) { try { diff --git a/tests.html b/tests.html index 0321876..a37ec52 100644 --- a/tests.html +++ b/tests.html @@ -1,7 +1,7 @@ - SVR.JS 3.14.9 Tests + SVR.JS 3.14.10 Tests -

SVR.JS 3.14.9 Tests

+

SVR.JS 3.14.10 Tests

Directory (without trailing slash)

Directory (with query)