forked from svrjs/svrjs
Dropped support for HTTP to HTTPS redirect bypass headers
This commit is contained in:
parent
1637e87550
commit
fdac578678
1 changed files with 421 additions and 425 deletions
4
svr.js
4
svr.js
|
@ -2108,9 +2108,6 @@ if (!cluster.isPrimary) {
|
|||
if (server2.requestTimeout !== undefined && server2.requestTimeout === 0) server2.requestTimeout = 300000;
|
||||
|
||||
function redirhandler(req, res) {
|
||||
if (req.headers["force-insecure"] == "true" || req.headers["x-force-insecure"] == "true" || req.headers["x-svr-js-force-insecure"] == "true") {
|
||||
reqhandler(req, res, false);
|
||||
} else {
|
||||
var reqIdInt = Math.round(Math.random() * 16777216);
|
||||
var reqId = "0".repeat(6 - reqIdInt.toString(16).length) + reqIdInt.toString(16);
|
||||
var serverconsole = {
|
||||
|
@ -2576,7 +2573,6 @@ if (!cluster.isPrimary) {
|
|||
callServerError(500, undefined, generateErrorStack(err));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function reqerrhandler(err, socket, fromMain) {
|
||||
if (fromMain === undefined) fromMain = true;
|
||||
|
|
Reference in a new issue