diff options
author | Matthew Wild <mwild1@gmail.com> | 2011-08-20 16:51:17 -0400 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2011-08-20 16:51:17 -0400 |
commit | e833a3485d39992a58a015a5a2d853ce6f4a58cd (patch) | |
tree | 00c64f01bbcaf93e34edf9001931013535b4609e /net | |
parent | 868d6804c6e598b8b5f56390f0c386a5b0c66b83 (diff) | |
download | prosody-e833a3485d39992a58a015a5a2d853ce6f4a58cd.tar.gz prosody-e833a3485d39992a58a015a5a2d853ce6f4a58cd.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.lua | 4 |
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 |