net.http.parser: Fix whitespace/indentation
authorMatthew Wild <mwild1@gmail.com>
Tue, 18 Nov 2014 17:40:37 +0000 (17:40 +0000)
committerMatthew Wild <mwild1@gmail.com>
Tue, 18 Nov 2014 17:40:37 +0000 (17:40 +0000)
net/http/parser.lua

index 056d4b6029081cea9288aa82da6fea0da612319f..6d7187da1920bf442142ec9730dff3d96db20ee6 100644 (file)
@@ -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;