Software /
code /
prosody
Diff
net/http/parser.lua @ 6523:63d3126b75f1
net.http.parser: Fix whitespace/indentation
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 18 Nov 2014 17:40:37 +0000 |
parent | 6522:46cf369d3eb5 |
child | 7569:a15ce0014ac9 |
child | 7575:3ae247af68f4 |
line wrap: on
line diff
--- 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;