diff --git a/http/file_list.lua b/http/file_list.lua index e8bc675..8f334e3 100644 --- a/http/file_list.lua +++ b/http/file_list.lua @@ -12,6 +12,8 @@ return function (connection, args) local url = string.match(name, ".*/(.*)") if isHttpFile then connection:send('
  • ' .. url .. " (" .. size .. " bytes)
  • \n") + -- this list could be very long, so we'll yield in order to avoid overflowing the send buffer. + coroutine.yield() end end