From 6c8873ce3f7f978a2d989ce7854c163f230c766e Mon Sep 17 00:00:00 2001 From: Dorian Niemiec Date: Sat, 9 Mar 2024 15:57:56 +0100 Subject: [PATCH] Fix comparison optimized in the previous commit --- svr.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/svr.js b/svr.js index d5a37ce..9e7179c 100644 --- a/svr.js +++ b/svr.js @@ -2930,7 +2930,7 @@ if (!cluster.isPrimary) { var tableKeysT = Object.keys(table); tableKeysT.forEach(function (key) { 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) { return false;