aboutsummaryrefslogtreecommitdiffstats
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
commite833a3485d39992a58a015a5a2d853ce6f4a58cd (patch)
tree00c64f01bbcaf93e34edf9001931013535b4609e
parent868d6804c6e598b8b5f56390f0c386a5b0c66b83 (diff)
downloadprosody-e833a3485d39992a58a015a5a2d853ce6f4a58cd.tar.gz
prosody-e833a3485d39992a58a015a5a2d853ce6f4a58cd.zip
net.httpclient_listener: Fix to look for the request body in the right variable...
-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