Skip to content

Commit fe2f227

Browse files
committed
Merge pull request marcoskirsch#1 from borromeotlhs/rework-headers
Rework headers
2 parents 219baa7 + 2672d3b commit fe2f227

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

httpserver-header.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
return function (connection, code, extension)
66

77
local function getHTTPStatusString(code)
8-
local codez = {[200]="OK", [400]="Bad Request", [404]="Not Found", [501]="Not Implemented",}
8+
local codez = {[200]="OK", [400]="Bad Request", [404]="Not Found",}
99
local myResult = codez[code]
1010
-- enforce returning valid http codes all the way throughout?
11-
if myResult then return myResult else return codez[501] end
11+
if myResult then return myResult else return "Not Implemented" end
1212
end
1313

1414
local function getMimeType(ext)

0 commit comments

Comments
 (0)