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 | a40ad30126e2ee8696561afb0353dec132057d44 (patch) | |
tree | 00c64f01bbcaf93e34edf9001931013535b4609e | |
parent | 80363abfd93ac8af140a2fcc290b475db5777d8e (diff) | |
download | prosody-a40ad30126e2ee8696561afb0353dec132057d44.tar.gz prosody-a40ad30126e2ee8696561afb0353dec132057d44.zip |
net.httpclient_listener: Fix to look for the request body in the right variable...
-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 |