diff options
author | root <elezegarcia@yahoo.com.ar> | 2012-01-08 12:34:11 -0300 |
---|---|---|
committer | Sam Roberts <vieuxtech@gmail.com> | 2012-04-11 13:45:59 -0700 |
commit | e716e7347b35ab0d00d95308522c1a099a01ebaa (patch) | |
tree | c07342fed3d83bae22a13e5544a01f931084606c | |
parent | 12bde801f6a5d3a192dee29dda1266108aa98d45 (diff) | |
download | luasocket-e716e7347b35ab0d00d95308522c1a099a01ebaa.tar.gz luasocket-e716e7347b35ab0d00d95308522c1a099a01ebaa.tar.bz2 luasocket-e716e7347b35ab0d00d95308522c1a099a01ebaa.zip |
mime: Remove io dependency
This dependency was spuriously added, maybe for debug reasons,
as confirmed to me by Diego Nehab by mail.
Some systems based in Lua (e.g. Ginga) prohibit the use of
io module for security reasons, so this dependency makes
mime unusable; even worse this makes other modules, based
on mime, unusable too (e.g. html).
-rw-r--r-- | src/mime.lua | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/mime.lua b/src/mime.lua index eb75db2..81d8e0d 100644 --- a/src/mime.lua +++ b/src/mime.lua | |||
@@ -11,7 +11,6 @@ | |||
11 | local base = _G | 11 | local base = _G |
12 | local ltn12 = require("ltn12") | 12 | local ltn12 = require("ltn12") |
13 | local mime = require("mime.core") | 13 | local mime = require("mime.core") |
14 | local io = require("io") | ||
15 | local string = require("string") | 14 | local string = require("string") |
16 | module("mime") | 15 | module("mime") |
17 | 16 | ||