aboutsummaryrefslogtreecommitdiff
path: root/src/mime.lua
diff options
context:
space:
mode:
authorDiego Nehab <diego@tecgraf.puc-rio.br>2005-06-17 04:04:55 +0000
committerDiego Nehab <diego@tecgraf.puc-rio.br>2005-06-17 04:04:55 +0000
commit4d455c6206747ca65b14d65f75d34e16450d352b (patch)
tree4607fc690526e4d227e5c5148025ffa9ba879843 /src/mime.lua
parent65c35845c54c7f84b1cf5b0e3d4c7bbdaf1014e3 (diff)
downloadluasocket-4d455c6206747ca65b14d65f75d34e16450d352b.tar.gz
luasocket-4d455c6206747ca65b14d65f75d34e16450d352b.tar.bz2
luasocket-4d455c6206747ca65b14d65f75d34e16450d352b.zip
Using core.so instead of csocket.so and cmime.so.
Diffstat (limited to 'src/mime.lua')
-rw-r--r--src/mime.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mime.lua b/src/mime.lua
index f6509a0..e112f8a 100644
--- a/src/mime.lua
+++ b/src/mime.lua
@@ -10,7 +10,9 @@
10----------------------------------------------------------------------------- 10-----------------------------------------------------------------------------
11local base = _G 11local base = _G
12local ltn12 = require("ltn12") 12local ltn12 = require("ltn12")
13local mime = require("cmime") 13local mime = require("mime.core")
14local io = require("io")
15local string = require("string")
14module("mime") 16module("mime")
15 17
16-- encode, decode and wrap algorithm tables 18-- encode, decode and wrap algorithm tables
@@ -49,8 +51,6 @@ decodet['quoted-printable'] = function()
49 return ltn12.filter.cycle(unqp, "") 51 return ltn12.filter.cycle(unqp, "")
50end 52end
51 53
52local io, string = io, string
53
54local function format(chunk) 54local function format(chunk)
55 if chunk then 55 if chunk then
56 if chunk == "" then return "''" 56 if chunk == "" then return "''"