From 53e12f21f1bc2b0f6e8c840af519ce712b511d63 Mon Sep 17 00:00:00 2001 From: Godzil Date: Thu, 31 Oct 2019 02:04:27 +0000 Subject: [PATCH] Change text/plain to application/octet-stream --- httpserver-header.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httpserver-header.lua b/httpserver-header.lua index 8f157ba..c9a6aad 100644 --- a/httpserver-header.lua +++ b/httpserver-header.lua @@ -15,7 +15,7 @@ return function(connection, code, extension, isGzipped, extraHeaders) -- A few MIME types. Keep list short. If you need something that is missing, let's add it. local mt = {css = "text/css", gif = "image/gif", html = "text/html", ico = "image/x-icon", jpeg = "image/jpeg", jpg = "image/jpeg", js = "application/javascript", json = "application/json", png = "image/png", xml = "text/xml"} - if mt[ext] then return mt[ext] else return "text/plain" end + if mt[ext] then return mt[ext] else return "application/octet-stream" end end local mimeType = getMimeType(extension)