소스 검색

Update httpserver-header.lua

TJ Borromeo 9 년 전
부모
커밋
e01e97469f
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      httpserver-header.lua

+ 2 - 2
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)