|
@@ -8,7 +8,7 @@ return function (connection, code, extension)
|
|
|
local codez = {[200]="OK", [400]="Bad Request", [404]="Not Found",}
|
|
|
local myResult = codez[code]
|
|
|
-- enforce returning valid http codes all the way throughout?
|
|
|
- if myResult then return {[code]=myResult,} else return {[501]="Not Implemented",} end
|
|
|
+ if myResult then return myResult else return "Not Implemented" end
|
|
|
end
|
|
|
|
|
|
local function getMimeType(ext)
|