1
0
Fork 0
forked from svrjs/svrjs

Fix the previous commit

This commit is contained in:
Dorian Niemiec 2024-05-13 17:01:11 +02:00
parent 6c3a5bd9ee
commit f3edbcc3f3

2
svr.js
View file

@ -3684,7 +3684,7 @@ if (!cluster.isPrimary) {
if (end > filelen - 1) end = filelen - 1; if (end > filelen - 1) end = filelen - 1;
rhd["Content-Range"] = "bytes " + begin + "-" + end + "/" + filelen; rhd["Content-Range"] = "bytes " + begin + "-" + end + "/" + filelen;
rhd["Content-Length"] = end - begin + 1; rhd["Content-Length"] = end - begin + 1;
delete mtype["Content-Type"]; delete rhd["Content-Type"];
var mtype = mime.contentType(ext); var mtype = mime.contentType(ext);
if (mtype && ext != "") rhd["Content-Type"] = mtype; if (mtype && ext != "") rhd["Content-Type"] = mtype;
if (fileETag) rhd["ETag"] = fileETag; if (fileETag) rhd["ETag"] = fileETag;