forked from svrjs/svrjs
Fix the previous commit
This commit is contained in:
parent
6c3a5bd9ee
commit
f3edbcc3f3
1 changed files with 1 additions and 1 deletions
2
svr.js
2
svr.js
|
@ -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;
|
||||||
|
|
Reference in a new issue