aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2014-11-18 17:40:37 +0000
committerMatthew Wild <mwild1@gmail.com>2014-11-18 17:40:37 +0000
commitb874ec14c853c6fd8fa053f707ef2f0cd837bba4 (patch)
tree9c490dd19c4a884c3171493867507c59b8eb11ef /net
parent23ec109ef66add1502ff0f2d53d84ad35bd0f4d3 (diff)
downloadprosody-b874ec14c853c6fd8fa053f707ef2f0cd837bba4.tar.gz
prosody-b874ec14c853c6fd8fa053f707ef2f0cd837bba4.zip
net.http.parser: Fix whitespace/indentation
Diffstat (limited to 'net')
-rw-r--r--net/http/parser.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/net/http/parser.lua b/net/http/parser.lua
index 056d4b60..6d7187da 100644
--- a/net/http/parser.lua
+++ b/net/http/parser.lua
@@ -140,11 +140,11 @@ function httpstream.new(success_cb, error_cb, parser_type, options_cb)
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;