aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2011-08-20 16:51:17 -0400
committerMatthew Wild <mwild1@gmail.com>2011-08-20 16:51:17 -0400
commita40ad30126e2ee8696561afb0353dec132057d44 (patch)
tree00c64f01bbcaf93e34edf9001931013535b4609e /net
parent80363abfd93ac8af140a2fcc290b475db5777d8e (diff)
downloadprosody-a40ad30126e2ee8696561afb0353dec132057d44.tar.gz
prosody-a40ad30126e2ee8696561afb0353dec132057d44.zip
net.httpclient_listener: Fix to look for the request body in the right variable...
Diffstat (limited to 'net')
-rw-r--r--net/httpclient_listener.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/httpclient_listener.lua b/net/httpclient_listener.lua
index df571a58..342c2311 100644
--- a/net/httpclient_listener.lua
+++ b/net/httpclient_listener.lua
@@ -32,8 +32,8 @@ function httpclient.onconnect(conn)
end
conn:write("\r\n");
- if body then
- conn:write(body);
+ if req.body then
+ conn:write(req.body);
end
end