瀏覽代碼

Fix end of line

Artem Pastukhov 9 年之前
父節點
當前提交
6d608af486
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      httpserver-static.lua

+ 2 - 2
httpserver-static.lua

@@ -6,14 +6,14 @@ local function getMimeType(ext)
    local gzip = false
    -- 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"}
-   -- add comressed flag if file ends with gz
+   -- add comressed flag if file ends with gz
    if ext:find("gz$") then 
        ext = ext:sub(1, -4)
        gzip = true
    end
    if mt[ext] then contentType = mt[ext] else contentType = "text/plain" end
    return {contentType = contentType, gzip = gzip }
-
+
 end
 
 local function sendHeader(connection, code, codeString, mimeType)