From e01e97469f3a9dfc42ab5daa3e6a90dcb6b37102 Mon Sep 17 00:00:00 2001 From: TJ Borromeo Date: Wed, 6 May 2015 13:42:06 -0700 Subject: [PATCH] Update httpserver-header.lua --- httpserver-header.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/httpserver-header.lua b/httpserver-header.lua index 599c3e5..b3f9134 100644 --- a/httpserver-header.lua +++ b/httpserver-header.lua @@ -5,10 +5,10 @@ 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",} local myResult = codez[code] -- enforce returning valid http codes all the way throughout? - if myResult then return {[code]=myResult,} else return {[501]=codez[501],} end + if myResult then return {[code]=myResult,} else return {[501]="Not Implemented",} end end local function getMimeType(ext)