mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Remove unused PassThrough stream import from red.js
This commit is contained in:
parent
aaa0467ba0
commit
5d07c8b215
3
packages/node_modules/node-red/red.js
vendored
3
packages/node_modules/node-red/red.js
vendored
@ -47,7 +47,6 @@ var fs = require("fs-extra");
|
|||||||
const cors = require('cors');
|
const cors = require('cors');
|
||||||
|
|
||||||
var RED = require("./lib/red.js");
|
var RED = require("./lib/red.js");
|
||||||
var PassThrough = require('stream').PassThrough;
|
|
||||||
|
|
||||||
var server;
|
var server;
|
||||||
var app = express();
|
var app = express();
|
||||||
@ -287,9 +286,7 @@ httpsPromise.then(function(startupHttps) {
|
|||||||
} else {
|
} else {
|
||||||
server = http.createServer(function(req,res) {app(req,res);});
|
server = http.createServer(function(req,res) {app(req,res);});
|
||||||
}
|
}
|
||||||
|
|
||||||
server.setMaxListeners(0);
|
server.setMaxListeners(0);
|
||||||
|
|
||||||
function formatRoot(root) {
|
function formatRoot(root) {
|
||||||
if (root[0] != "/") {
|
if (root[0] != "/") {
|
||||||
root = "/" + root;
|
root = "/" + root;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user