Browse Source

line shorter

line is too long and luatool.py raize exception when uploading that file
ffedoroff 7 years ago
parent
commit
73fbf92986
1 changed files with 2 additions and 1 deletions
  1. 2 1
      httpserver-header.lua

+ 2 - 1
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