v0.9.73 - also some security updates

This commit is contained in:
zefie
2026-04-23 22:00:08 -04:00
parent 65e048d3fb
commit 9066ea7501
5 changed files with 22 additions and 21 deletions

View File

@@ -665,11 +665,11 @@ class WebTVClientSimulator {
// Parse headers first to check content-length
const lines = headerSection.split(/\r?\n/);
const statusLine = lines[0].replace('\r', '');
const statusLine = lines[0].replaceAll('\r', '');
const headers = {};
for (let i = 1; i < lines.length; i++) {
const line = lines[i].replace('\r', '');
const line = lines[i].replaceAll('\r', '');
const colonIndex = line.indexOf(':');
if (colonIndex > 0) {
const key = line.slice(0, colonIndex).toLowerCase();
@@ -807,12 +807,12 @@ class WebTVClientSimulator {
bodyBuf = Buffer.alloc(0);
}
const lines = headerSection.split(/\r?\n/);
const statusLine = lines[0].replace('\r', '');
const statusLine = lines[0].replaceAll('\r', '');
this.debugLog(`Status: ${statusLine}`);
// Parse headers
const headers = {};
for (let i = 1; i < lines.length; i++) {
const line = lines[i].replace('\r', '');
const line = lines[i].replaceAll('\r', '');
const colonIndex = line.indexOf(':');
if (colonIndex > 0) {
const key = line.slice(0, colonIndex).toLowerCase();
@@ -1411,12 +1411,12 @@ class WebTVClientSimulator {
bodyBuf = Buffer.alloc(0);
}
const lines = headerSection.split(/\r?\n/);
const statusLine = lines[0].replace('\r', '');
const statusLine = lines[0].replaceAll('\r', '');
this.debugLog(`Content Status: ${statusLine}`);
// Parse headers
const headers = {};
for (let i = 1; i < lines.length; i++) {
const line = lines[i].replace('\r', '');
const line = lines[i].replaceAll('\r', '');
const colonIndex = line.indexOf(':');
if (colonIndex > 0) {
const key = line.slice(0, colonIndex).toLowerCase();