Comparison

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
comparison
equal deleted inserted replaced
6522:46cf369d3eb5 6523:63d3126b75f1
138 chunk_size, chunk_start = nil, nil; 138 chunk_size, chunk_start = nil, nil;
139 else -- Partial chunk remaining 139 else -- Partial chunk remaining
140 break; 140 break;
141 end 141 end
142 elseif len and #buf >= len then 142 elseif len and #buf >= len then
143 if packet.code == 101 then 143 if packet.code == 101 then
144 packet.body, buf = buf, "" 144 packet.body, buf = buf, "";
145 else 145 else
146 packet.body, buf = buf:sub(1, len), buf:sub(len + 1); 146 packet.body, buf = buf:sub(1, len), buf:sub(len + 1);
147 end 147 end
148 state = nil; success_cb(packet); 148 state = nil; success_cb(packet);
149 else 149 else
150 break; 150 break;
151 end 151 end
152 elseif #buf >= len then 152 elseif #buf >= len then