1
0
Fork 0
forked from svrjs/svrjs

Update to SVR.JS 3.15.3

This commit is contained in:
Dorian Niemiec 2024-05-21 17:28:47 +02:00
parent 78e7c8c967
commit 45d8b9bcd3
4 changed files with 11 additions and 11 deletions

View file

@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<title>SVR.JS 3.15.2</title>
<title>SVR.JS 3.15.3</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta charset="UTF-8" />
<style>
@ -76,7 +76,7 @@
</style>
</head>
<body>
<h1>Welcome to SVR.JS 3.15.2</h1>
<h1>Welcome to SVR.JS 3.15.3</h1>
<br />
<img src="/logo.png" style="width: 224px; max-width: 100%;" />
<br />
@ -148,7 +148,7 @@
</code>
<p>Changes:</p>
<ul style="display: inline-block; margin: 0;">
<li>Removed the limit of 16 workers.</li>
<li>Fixed bug in the URL parser (URLs with "@" got erroneously "sanitized" to "/").</li>
</ul>
<p>
<a href="/tests.html">Tests</a><br />

View file

@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<title>SVR.JS 3.15.2 Licenses</title>
<title>SVR.JS 3.15.3 Licenses</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta charset="UTF-8" />
<style>
@ -76,8 +76,8 @@
</style>
</head>
<body>
<h1>SVR.JS 3.15.2 Licenses</h1>
<h2>SVR.JS 3.15.2</h2>
<h1>SVR.JS 3.15.3 Licenses</h1>
<h2>SVR.JS 3.15.3</h2>
<div style="display: inline-block; text-align: left; border-width: 2px; border-style: solid; border-color: gray; padding: 8px;">
MIT License<br/>
<br/>
@ -101,7 +101,7 @@
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE<br/>
SOFTWARE.<br/>
</div>
<h2>Packages used by SVR.JS 3.15.2</h2>
<h2>Packages used by SVR.JS 3.15.3</h2>
<div style="width: 100%; max-width: 1280px; margin: auto">
<div style="width: 100%; background-color: #ccc; background-color: rgba(200, 200, 200, 0.3); border: 1px solid green; text-align: left; margin: 10px 0;">
<div style="float: right;">License: MIT</div>

4
svr.js
View file

@ -69,7 +69,7 @@ function deleteFolderRecursive(path) {
}
var os = require("os");
var version = "3.15.2";
var version = "3.15.3";
var singlethreaded = false;
if (process.versions) process.versions.svrjs = version; // Inject SVR.JS into process.versions
@ -1359,7 +1359,7 @@ function parseURL(uri, prepend) {
var hasSlashes = (uri.indexOf("/") != -1);
// Parse the URL using regular expression
var parsedURI = uri.match(/^(?:([^:]+:)(\/\/)?)?(?:([^@]+)@)?([^:\/?#\*]+|\[[^\*]\/]\])?(?::([0-9]+))?(\*|\/[^?#]*)?(\?[^#]*)?(#[\S\s]*)?/);
var parsedURI = uri.match(/^(?:([^:]+:)(\/\/)?)?(?:([^@\/?#\*]+)@)?([^:\/?#\*]+|\[[^\*]\/]\])?(?::([0-9]+))?(\*|\/[^?#]*)?(\?[^#]*)?(#[\S\s]*)?/);
// Match 1: protocol
// Match 2: slashes after protocol
// Match 3: authentication credentials

View file

@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<title>SVR.JS 3.15.2 Tests</title>
<title>SVR.JS 3.15.3 Tests</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta charset="UTF-8" />
<style>
@ -76,7 +76,7 @@
</style>
</head>
<body>
<h1>SVR.JS 3.15.2 Tests</h1>
<h1>SVR.JS 3.15.3 Tests</h1>
<h2>Directory (without trailing slash)</h2>
<iframe src="/testdir" width="75%" height="300px"></iframe>
<h2>Directory (with query)</h2>