# HG changeset patch # User Matthew Wild # Date 1416332437 0 # Node ID 63d3126b75f1924fe61791ae1c49c4aa326cb2c6 # Parent 46cf369d3eb56d496b7d4e2612bc303a8abf7a23 net.http.parser: Fix whitespace/indentation diff -r 46cf369d3eb5 -r 63d3126b75f1 net/http/parser.lua --- a/net/http/parser.lua Mon Nov 10 14:47:33 2014 -0500 +++ b/net/http/parser.lua Tue Nov 18 17:40:37 2014 +0000 @@ -140,11 +140,11 @@ break; end elseif len and #buf >= len then - if packet.code == 101 then - packet.body, buf = buf, "" - else - packet.body, buf = buf:sub(1, len), buf:sub(len + 1); - end + if packet.code == 101 then + packet.body, buf = buf, ""; + else + packet.body, buf = buf:sub(1, len), buf:sub(len + 1); + end state = nil; success_cb(packet); else break;