aboutsummaryrefslogtreecommitdiff
path: root/src/mime.lua
diff options
context:
space:
mode:
authorDiego Nehab <diego@tecgraf.puc-rio.br>2007-06-11 23:44:54 +0000
committerDiego Nehab <diego@tecgraf.puc-rio.br>2007-06-11 23:44:54 +0000
commit3cd10f5ab6cda5c4a8db829dd38f25168edcfc4a (patch)
treef0c49eb250f5375414025a9e7022261e729ad905 /src/mime.lua
parent3074a8f56b5153f4477e662453102583d7b6f539 (diff)
downloadluasocket-3cd10f5ab6cda5c4a8db829dd38f25168edcfc4a.tar.gz
luasocket-3cd10f5ab6cda5c4a8db829dd38f25168edcfc4a.tar.bz2
luasocket-3cd10f5ab6cda5c4a8db829dd38f25168edcfc4a.zip
Crashy bug fixed in recvraw.
Also fixed returns on closed socket.
Diffstat (limited to 'src/mime.lua')
-rw-r--r--src/mime.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mime.lua b/src/mime.lua
index 3182545..eb75db2 100644
--- a/src/mime.lua
+++ b/src/mime.lua
@@ -27,7 +27,8 @@ local function choose(table)
27 name, opt1, opt2 = "default", name, opt1 27 name, opt1, opt2 = "default", name, opt1
28 end 28 end
29 local f = table[name or "nil"] 29 local f = table[name or "nil"]
30 if not f then error("unknown key (" .. base.tostring(name) .. ")", 3) 30 if not f then
31 base.error("unknown key (" .. base.tostring(name) .. ")", 3)
31 else return f(opt1, opt2) end 32 else return f(opt1, opt2) end
32 end 33 end
33end 34end