Revert "respect Connection: close"

This reverts commit c09d0d6989.
This commit is contained in:
zefie
2021-08-09 10:47:38 -04:00
parent 62eba01ddd
commit 376aadd762

View File

@@ -771,7 +771,7 @@ async function sendToClient(socket, headers_obj, data) {
if (socket_sessions[socket.id].close_me) socket.end();
if (headers_obj["Connection"]) {
if (headers_obj["Connection"].toLowerCase() == "close" || wtv_connection_close == "true") {
if (headers_obj["Connection"].toLowerCase() == "close" && wtv_connection_close == "true") {
socket.destroy();
}
}