httpserver-header.lc requires the file extension not the MIME type

This commit is contained in:
Gregor 2017-05-29 19:13:30 +02:00
parent 90cb4e47aa
commit 3833ec8a7b

View File

@ -1,5 +1,5 @@
return function (connection, req, args) return function (connection, req, args)
dofile("httpserver-header.lc")(connection, 200, 'application/json') dofile("httpserver-header.lc")(connection, 200, 'json')
connection:send('{') connection:send('{')
local mbOffset = nil local mbOffset = nil