summaryrefslogtreecommitdiffhomepage
path: root/libs/httpd/luasrc/httpd.lua
diff options
context:
space:
mode:
Diffstat (limited to 'libs/httpd/luasrc/httpd.lua')
-rw-r--r--libs/httpd/luasrc/httpd.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/httpd/luasrc/httpd.lua b/libs/httpd/luasrc/httpd.lua
index 196101950..8b54f0e64 100644
--- a/libs/httpd/luasrc/httpd.lua
+++ b/libs/httpd/luasrc/httpd.lua
@@ -66,7 +66,7 @@ function cosend(socket, chunk, i, ...)
threadi[socket] = false
return stat, err, sent
else
- i = sent and (sent + 1) or 1
+ i = sent and (sent + 1) or i
end
coroutine.yield()