Remove wtv-lzpf detection to do stream comp outside sendToClient

This commit is contained in:
Eric MacDonald
2021-08-07 16:43:48 -04:00
parent e6958fb2c3
commit 36a2aebe17

View File

@@ -463,12 +463,6 @@ async function sendToClient(socket, headers_obj, data, compress_data = false) {
clen = data.byteLength; clen = data.byteLength;
} }
// If wtv-lzpf is in the header then force compression
if (headers_obj["wtv-lzpf"]) {
compress_data = true;
}
// fix captialization // fix captialization
if (headers_obj["Content-type"]) { if (headers_obj["Content-type"]) {
headers_obj["Content-Type"] = headers_obj["Content-type"]; headers_obj["Content-Type"] = headers_obj["Content-type"];