summaryrefslogtreecommitdiffhomepage
path: root/libs/web/luasrc/http
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-06-16 19:47:57 +0000
committerSteven Barth <steven@midlink.org>2008-06-16 19:47:57 +0000
commitdfe85d7e518cc35a55e372b0ac31345788a486a8 (patch)
tree5651cf8017bbb58f2da9eb93ca2013236b30eac6 /libs/web/luasrc/http
parent77da39e7762f7494399e7bad88709764cd6d8f44 (diff)
* Added preliminary HTTPD construct
Diffstat (limited to 'libs/web/luasrc/http')
-rw-r--r--libs/web/luasrc/http/protocol.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/web/luasrc/http/protocol.lua b/libs/web/luasrc/http/protocol.lua
index 970983d5b..6901291b9 100644
--- a/libs/web/luasrc/http/protocol.lua
+++ b/libs/web/luasrc/http/protocol.lua
@@ -517,7 +517,7 @@ function _linereader( obj, bufsz )
__read = function() return obj:sub( _pos, _pos + bufsz - #_buf - 1 ) end
-- object implements a receive() or read() function
- elseif type(obj) == "userdata" and ( type(obj.receive) == "function" or type(obj.read) == "function" ) then
+ elseif (type(obj) == "userdata" or type(obj) == "table") and ( type(obj.receive) == "function" or type(obj.read) == "function" ) then
if type(obj.read) == "function" then
__read = function() return obj:read( bufsz - #_buf ) end