From f09fe9a6106c2124616d1a173d1833921eb6d424 Mon Sep 17 00:00:00 2001 From: Marcos Kirsch Date: Wed, 1 Apr 2015 22:58:25 -0500 Subject: [PATCH] Fix typo: It's json not josn --- httpserver-static.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httpserver-static.lua b/httpserver-static.lua index e48e5ce..7448fe8 100644 --- a/httpserver-static.lua +++ b/httpserver-static.lua @@ -4,7 +4,7 @@ local function getMimeType(ext) -- 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", josn="application/json", png = "image/png"} + 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"} if mt[ext] then return mt[ext] else return "text/plain" end end