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:
- - Changed default file extensions compression exclude list.
- - Lifted scrypt restrictions on Bun.
- - Optimized server script size (268 KiB => 256 KiB).
- - The compression exclude list is now in SVR.JS itself.
+ - Disabled trailing slash removal for proxy requests.
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)