Using socket pumps in http.lua.

Adjusted socket.try.
This commit is contained in:
Diego Nehab 2004-03-26 06:05:20 +00:00
parent e77f179200
commit e5a090b01c
5 changed files with 41 additions and 124 deletions

View file

@ -9,4 +9,4 @@ else
convert = ltn12.filter.chain(base64, wrap)
end
source = ltn12.source.chain(source, convert)
ltn12.pump(source, sink)
repeat until not ltn12.pump(source, sink)