Comparison

net/httpclient_listener.lua @ 4354:502876d94363

net.httpclient_listener: Fix to look for the request body in the right variable...
author Matthew Wild <mwild1@gmail.com>
date Sat, 20 Aug 2011 16:51:17 -0400
parent 4352:912a49b1c4e3
child 4371:8399b5b57046
comparison
equal deleted inserted replaced
4353:f600591c87fa 4354:502876d94363
30 t[1], t[3] = k, v; 30 t[1], t[3] = k, v;
31 conn:write(t_concat(t)); 31 conn:write(t_concat(t));
32 end 32 end
33 conn:write("\r\n"); 33 conn:write("\r\n");
34 34
35 if body then 35 if req.body then
36 conn:write(body); 36 conn:write(req.body);
37 end 37 end
38 end 38 end
39 39
40 function httpclient.onincoming(conn, data) 40 function httpclient.onincoming(conn, data)
41 local request = requests[conn]; 41 local request = requests[conn];