Comparison

net/http/parser.lua @ 7569:a15ce0014ac9

net.http.parser: Remove unused argument [luacheck]
author Kim Alvefur <zash@zash.se>
date Sat, 13 Aug 2016 15:09:43 +0200
parent 6523:63d3126b75f1
child 7581:01d0d466d7be
comparison
equal deleted inserted replaced
7568:4f7990902874 7569:a15ce0014ac9
33 local packet; 33 local packet;
34 local len; 34 local len;
35 local have_body; 35 local have_body;
36 local error; 36 local error;
37 return { 37 return {
38 feed = function(self, data) 38 feed = function(_, data)
39 if error then return nil, "parse has failed"; end 39 if error then return nil, "parse has failed"; end
40 if not data then -- EOF 40 if not data then -- EOF
41 if state and client and not len then -- reading client body until EOF 41 if state and client and not len then -- reading client body until EOF
42 packet.body = buf; 42 packet.body = buf;
43 success_cb(packet); 43 success_cb(packet);