From b4842301a03e478b6dd9834f0ad97a597a7c476e Mon Sep 17 00:00:00 2001 From: TJ Borromeo Date: Wed, 6 May 2015 13:16:47 -0700 Subject: [PATCH] Fix improper syntax in list brackets needed for non-standard table indexing. Also added a trailing comma as its valid (and more consistent, imo). --- httpserver-header.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httpserver-header.lua b/httpserver-header.lua index d848196..f6467d6 100644 --- a/httpserver-header.lua +++ b/httpserver-header.lua @@ -5,7 +5,7 @@ return function (connection, code, extension) local function getHTTPStatusString(code) - local codez = {200="OK", 400="Bad Request", 404="Not Found", 501="Not Implemented"} + local codez = {[200]="OK", [400]="Bad Request", [404]="Not Found", [501]="Not Implemented",} local myResult = codez[code] if myResult then return myResult else return "Unknown HTTP Status" end end