forked from svrjs/svrjs
Fix even more bugs in partial content serving functionality
This commit is contained in:
parent
7fa6a3dfb3
commit
1a5aa2f79d
1 changed files with 1 additions and 1 deletions
2
svr.js
2
svr.js
|
@ -3738,7 +3738,7 @@ if (!cluster.isPrimary) {
|
||||||
end: !(foot.length > 0 && end > head.length + filelen)
|
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) {
|
if (head.length == 0 || begin > head.length) {
|
||||||
afterWriteCallback();
|
afterWriteCallback();
|
||||||
} else if (!res.write(head.substring(begin, head.length - begin))) {
|
} else if (!res.write(head.substring(begin, head.length - begin))) {
|
||||||
|
|
Reference in a new issue