diff 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
parents 912a49b1c4e3
children 8399b5b57046
line wrap: on
line diff
--- a/net/httpclient_listener.lua	Sat Aug 20 16:14:07 2011 -0400
+++ b/net/httpclient_listener.lua	Sat Aug 20 16:51:17 2011 -0400
@@ -32,8 +32,8 @@
 	end
 	conn:write("\r\n");
 	
-	if body then
-		conn:write(body);
+	if req.body then
+		conn:write(req.body);
 	end
 end