* Fixed last commit
authorSteven Barth <steven@midlink.org>
Sun, 29 Jun 2008 14:57:30 +0000 (14:57 +0000)
committerSteven Barth <steven@midlink.org>
Sun, 29 Jun 2008 14:57:30 +0000 (14:57 +0000)
libs/httpd/luasrc/httpd.lua

index 1961019..8b54f0e 100644 (file)
@@ -66,7 +66,7 @@ function cosend(socket, chunk, i, ...)
                        threadi[socket] = false
                        return stat, err, sent
                else
                        threadi[socket] = false
                        return stat, err, sent
                else
-                       i = sent and (sent + 1) or 
+                       i = sent and (sent + 1) or i
                end
  
                coroutine.yield()
                end
  
                coroutine.yield()