소스 검색

Update httpserver.lua

fixed typo
smet 7 년 전
부모
커밋
79313b0644
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      httpserver.lua

+ 1 - 1
httpserver.lua

@@ -139,7 +139,7 @@ return function (port)
                if connectionThreadStatus == "suspended" then
                   -- Not finished sending file, resume.
                   local status, err = coroutine.resume(connectionThread)
-                  if not status then log(getpeer(), "Error: " .. err) end
+                  if not status then log(connection:getpeer(), "Error: " .. err) end
                elseif connectionThreadStatus == "dead" then
                   -- We're done sending file.
                   connection:close()