1
0
Fork 0
forked from svrjs/svrjs

Fix even more bugs in partial content serving functionality

This commit is contained in:
Dorian Niemiec 2024-08-25 10:01:34 +02:00
parent 7fa6a3dfb3
commit 1a5aa2f79d

2
svr.js
View file

@ -3738,7 +3738,7 @@ if (!cluster.isPrimary) {
end: !(foot.length > 0 && end > head.length + filelen)
});
}
res.writeHead(206, http.STATUS_CODES[206], hdhds);
res.writeHead(206, http.STATUS_CODES[206], rhd);
if (head.length == 0 || begin > head.length) {
afterWriteCallback();
} else if (!res.write(head.substring(begin, head.length - begin))) {