Skip to content

Commit

Permalink
Change text/plain to application/octet-stream (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
Godzil authored and marcoskirsch committed Nov 14, 2019
1 parent f13a10a commit 6c7e451
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion httpserver-header.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6c7e451

Please sign in to comment.