From 688c850c500d140ede8a4bd02a6204949553e977 Mon Sep 17 00:00:00 2001 From: Dorian Niemiec Date: Thu, 18 Jan 2024 01:21:25 +0100 Subject: [PATCH] Update to SVR.JS 3.13.1 --- index.html | 12 ++++-------- licenses/index.html | 8 ++++---- svr.js | 29 +++++++++++++++++++---------- tests.html | 4 ++-- 4 files changed, 29 insertions(+), 24 deletions(-) diff --git a/index.html b/index.html index 695d6e8..7a87c60 100644 --- a/index.html +++ b/index.html @@ -1,7 +1,7 @@ - SVR.JS 3.13.0 + SVR.JS 3.13.1 -

Welcome to SVR.JS 3.13.0

+

Welcome to SVR.JS 3.13.1



@@ -134,12 +134,8 @@

Changes:


Tests
diff --git a/licenses/index.html b/licenses/index.html index 8dc995a..2bc57f2 100644 --- a/licenses/index.html +++ b/licenses/index.html @@ -1,7 +1,7 @@ - SVR.JS 3.13.0 Licenses + SVR.JS 3.13.1 Licenses -

SVR.JS 3.13.0 Licenses

-

SVR.JS 3.13.0

+

SVR.JS 3.13.1 Licenses

+

SVR.JS 3.13.1

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

+

Packages used by SVR.JS 3.13.1

License: MIT
diff --git a/svr.js b/svr.js index b3558d9..173635b 100644 --- a/svr.js +++ b/svr.js @@ -69,7 +69,7 @@ function deleteFolderRecursive(path) { } var os = require("os"); -var version = "3.13.0"; +var version = "3.13.1"; var singlethreaded = false; if (process.versions) process.versions.svrjs = version; // Inject SVR.JS into process.versions @@ -4168,9 +4168,9 @@ if (!cluster.isPrimary) { // Handle URL rewriting function rewriteURL(address, map, callback, _fileState, _mapBegIndex) { var rewrittenURL = address; + var doCallback = true; if (!isProxy) { - var doCallback = true; - for(var i=(_mapBegIndex ? _mapBegIndex : 0);i " + rewrittenURL); req.url = rewrittenURL; diff --git a/tests.html b/tests.html index 3e9a9e4..418fc9d 100644 --- a/tests.html +++ b/tests.html @@ -1,7 +1,7 @@ - SVR.JS 3.13.0 Tests + SVR.JS 3.13.1 Tests -

SVR.JS 3.13.0 Tests

+

SVR.JS 3.13.1 Tests

Directory (without trailing slash)

Directory (with query)