From 9c89c2f7178f280d7f8cd4d8a780018fc1f8b14f Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Wed, 28 Dec 2022 18:23:52 +0000 Subject: [PATCH] How did downloads ever work? git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4084 ed5197a5-7fde-0310-b194-c3ffbd925b24 --- core/core.js | 2 +- core/index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/core.js b/core/core.js index 8a7e8918..fff9e6a9 100644 --- a/core/core.js +++ b/core/core.js @@ -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 { diff --git a/core/index.html b/core/index.html index 62b86908..43d5236b 100644 --- a/core/index.html +++ b/core/index.html @@ -60,7 +60,7 @@
- +