forked from svrjs/svrjs
Update to SVR.JS 3.7.3
This commit is contained in:
parent
d01064cc17
commit
e0f0cb69d8
5 changed files with 22 additions and 15 deletions
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>SVR.JS 3.7.2</title>
|
||||
<title>SVR.JS 3.7.3</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta charset="UTF-8" />
|
||||
<style>
|
||||
|
@ -12,7 +12,7 @@
|
|||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Welcome to SVR.JS 3.7.2</h1>
|
||||
<h1>Welcome to SVR.JS 3.7.3</h1>
|
||||
<br/>
|
||||
<img src="/logo.png" style="width: 256px;" />
|
||||
<br/>
|
||||
|
@ -110,7 +110,7 @@
|
|||
</div>
|
||||
<p>Changes:</p>
|
||||
<ul>
|
||||
<li>ENAMETOOLONG errors now correspond to 414 code.</li>
|
||||
<li>Fixed server crashes while one of two ports are in use</li>
|
||||
</ul>
|
||||
<p>Bugs:</p>
|
||||
<ul>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>SVR.JS 3.7.2 Licenses</title>
|
||||
<title>SVR.JS 3.7.3 Licenses</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta charset="UTF-8" />
|
||||
<style>
|
||||
|
@ -12,8 +12,8 @@
|
|||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h1>SVR.JS 3.7.2 Licenses</h1>
|
||||
<h2>SVR.JS 3.7.2</h2>
|
||||
<h1>SVR.JS 3.7.3 Licenses</h1>
|
||||
<h2>SVR.JS 3.7.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/>
|
||||
|
@ -37,7 +37,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.7.2 and utilities</h2>
|
||||
<h2>Packages used by SVR.JS 3.7.3 and utilities</h2>
|
||||
<div style="width: 100%; background-color: #ccc; border: 1px solid green; text-align: left; margin: 10px 0;">
|
||||
<div style="float: right;">License: MIT</div>
|
||||
<div style="font-size: 20px;">
|
||||
|
|
|
@ -67,6 +67,7 @@ if(href == "/hello.svr") {
|
|||
//Prevent open proxy
|
||||
callServerError(403,"SVR.JS-exampleproxy"); //Server error
|
||||
serverconsole.errmessage("Client fails to recieve content."); //Log into SVR.JS
|
||||
return;
|
||||
}
|
||||
var hdrs = req.headers;
|
||||
hdrs["Host"] = (hn == "this" ? req.headers.host : hn);
|
||||
|
|
18
svr.js
18
svr.js
|
@ -81,7 +81,7 @@ function deleteFolderRecursive(path) {
|
|||
}
|
||||
|
||||
var os = require("os");
|
||||
var version = "3.7.2";
|
||||
var version = "3.7.3";
|
||||
var singlethreaded = false;
|
||||
|
||||
if (process.versions) process.versions.svrjs = version; //Inject SVR.JS into process.versions
|
||||
|
@ -4863,11 +4863,17 @@ function start(init) {
|
|||
|
||||
|
||||
if (!cluster.isPrimary) {
|
||||
if (secure) {
|
||||
server.listen(sport);
|
||||
if (!disableNonEncryptedServer) server2.listen(port);
|
||||
} else {
|
||||
server.listen(port);
|
||||
try {
|
||||
server.listen(secure ? sport : port);
|
||||
} catch(err) {
|
||||
if(err.code != "ERR_SERVER_ALREADY_LISTEN") throw err;
|
||||
}
|
||||
if (secure && !disableNonEncryptedServer) {
|
||||
try {
|
||||
server2.listen(port);
|
||||
} catch(err) {
|
||||
if(err.code != "ERR_SERVER_ALREADY_LISTEN") throw err;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>SVR.JS 3.7.2 Tests</title>
|
||||
<title>SVR.JS 3.7.3 Tests</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta charset="UTF-8" />
|
||||
<style>
|
||||
|
@ -12,7 +12,7 @@
|
|||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h1>SVR.JS 3.7.2 Tests</h1>
|
||||
<h1>SVR.JS 3.7.3 Tests</h1>
|
||||
<h2>Directory</h2>
|
||||
<iframe src="/testdir" width="50%" height="300px"></iframe>
|
||||
<h2>Directory (with query)</h2>
|
||||
|
|
Reference in a new issue