sam-github/luasocket — Issue #7: mime.lua depends erronously on io
Author: ezequielgarcia
Created: 2011-12-15 23:50:43+00:00
State: open

Hi,

I found by chance this luasocket fork. I would like to told of a (not so) tiny issue: "mime.lua" has io module
as a dependence, but actually it makes no use of it. I've already reported this on Diego Nehab, but he had
no time to fix it.

As tiny as this might look at a first glance, actually it makes the whole thing unusable from a certain platform I happen to work with: Ginga (http://www.ginga.org.br/).

For security reasons there is a requirement that Ginga Lua Player (sort of a sandbox) can't include io or any
other module that lets you access your storage. So, without that require line erased, one cannot require 'http'
from a Lua file played by Ginga.

Thanks,
Ezequiel.