Merge pull request #79 from stephanMettler/master

Update httpserver.lua
This commit is contained in:
Marcos 2017-03-03 08:08:28 -05:00 committed by GitHub
commit 90cb4e47aa

View File

@ -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()