From 6c7e451663080e68b72d00685d324be55b3ba4fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mano=C3=ABl=20Trapier?= Date: Thu, 14 Nov 2019 18:01:01 +0000 Subject: [PATCH] Change text/plain to application/octet-stream (#126) --- 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)