1
0
Fork 0
forked from svrjs/svrjs

Fix comparison optimized in the previous commit

This commit is contained in:
Dorian Niemiec 2024-03-09 15:57:56 +01:00
parent 4a24b9d892
commit 6c8873ce3f

2
svr.js
View file

@ -2930,7 +2930,7 @@ if (!cluster.isPrimary) {
var tableKeysT = Object.keys(table); var tableKeysT = Object.keys(table);
tableKeysT.forEach(function (key) { tableKeysT.forEach(function (key) {
var al = key.toLowerCase(); var al = key.toLowerCase();
if (al == "transfer-encoding" && al == "connection" && al == "keep-alive" && al == "upgrade") delete table[key]; if (al == "transfer-encoding" || al == "connection" || al == "keep-alive" || al == "upgrade") delete table[key];
}); });
if (res.stream && res.stream.destroyed) { if (res.stream && res.stream.destroyed) {
return false; return false;