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:
- - Added support for skipping URL rewriting, when the URL refers to a file or a directory.
- - Dropped support for svrmodpack.
- - Added support for 307 and 308 redirects (both in config.json and in redirect() SVR.JS API method).
- - Mitigated log file injection vulnerability for HTTP authentication.
- - Mitigated log file injection vulnerability for SVR.JS mod file names.
- - SVR.JS no longer crashes, when access to a log file is denied.
+ - Fixed error handling for invalid URL rewrite regexes.
+ - Fixed bug with non-working HTTP proxy handler (excluding CONNECT method).
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)