Software /
code /
prosody
Changeset
6523:63d3126b75f1
net.http.parser: Fix whitespace/indentation
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 18 Nov 2014 17:40:37 +0000 |
parents | 6522:46cf369d3eb5 |
children | 6524:185817ef4a4d 6558:461217c45a18 |
files | net/http/parser.lua |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
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;