From 73fbf929865193c3cb860a44c3f262fe3867ec23 Mon Sep 17 00:00:00 2001 From: ffedoroff Date: Wed, 2 Nov 2016 16:37:41 +0600 Subject: [PATCH] line shorter line is too long and luatool.py raize exception when uploading that file --- httpserver-header.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/httpserver-header.lua b/httpserver-header.lua index d218722..d3ea3fa 100644 --- a/httpserver-header.lua +++ b/httpserver-header.lua @@ -13,7 +13,8 @@ return function (connection, code, extension, isGzipped) 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", json = "application/json", png = "image/png", xml = "text/xml"} + 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 end