How did downloads ever work?

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4084 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2022-12-28 18:23:52 +00:00
parent d88752d840
commit 9c89c2f717
2 changed files with 2 additions and 2 deletions

View File

@ -540,7 +540,7 @@ function sendData(response, data, type, headers) {
response.writeHead(200, Object.assign({"Content-Type": "video/mp4", "Content-Length": data.byteLength}, headers || {}));
response.end(data);
} else {
response.writeHead(200, Object.assign({"Content-Type": type || "text/javascript; charset=utf-8", "Content-Length": data.byteLength}, headers || {}));
response.writeHead(200, Object.assign({"Content-Type": type || "application/binary", "Content-Length": data.byteLength}, headers || {}));
response.end(data);
}
} else {