Changeset

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 4353:f600591c87fa
children 4355:9e2a841739b5
files net/httpclient_listener.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
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