aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/http/parser.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/http/parser.lua b/net/http/parser.lua
index 2d822598..964c350d 100644
--- a/net/http/parser.lua
+++ b/net/http/parser.lua
@@ -131,6 +131,8 @@ function httpstream.new(success_cb, error_cb, parser_type, options_cb)
elseif #buf >= len then
packet.body, buf = buf:sub(1, len), buf:sub(len + 1);
state = nil; success_cb(packet);
+ else
+ break;
end
end
end