From f3edbcc3f3c51d8faaba78e210962d2dcfff0c00 Mon Sep 17 00:00:00 2001 From: Dorian Niemiec Date: Mon, 13 May 2024 17:01:11 +0200 Subject: [PATCH] Fix the previous commit --- svr.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/svr.js b/svr.js index 0e63b3b..5395686 100644 --- a/svr.js +++ b/svr.js @@ -3684,7 +3684,7 @@ if (!cluster.isPrimary) { if (end > filelen - 1) end = filelen - 1; rhd["Content-Range"] = "bytes " + begin + "-" + end + "/" + filelen; rhd["Content-Length"] = end - begin + 1; - delete mtype["Content-Type"]; + delete rhd["Content-Type"]; var mtype = mime.contentType(ext); if (mtype && ext != "") rhd["Content-Type"] = mtype; if (fileETag) rhd["ETag"] = fileETag;