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:
@ -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 {
|
||||
|
Reference in New Issue
Block a user