diff options
author | Waqas Hussain <waqas20@gmail.com> | 2011-08-31 23:25:04 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2011-08-31 23:25:04 +0500 |
commit | 807c9de35d0e2f24daed13589db6aae027b80c51 (patch) | |
tree | 4f4950e11b578d4b3a3e0ca6f6d126b37df153ce /net | |
parent | bd468f86f4341521cf49b058df82b27d5475a4d5 (diff) | |
download | prosody-807c9de35d0e2f24daed13589db6aae027b80c51.tar.gz prosody-807c9de35d0e2f24daed13589db6aae027b80c51.zip |
net.http: Remove extra space after method in request status line for POST.
Diffstat (limited to 'net')
-rw-r--r-- | net/http.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/http.lua b/net/http.lua index a6c704e3..2b2f7258 100644 --- a/net/http.lua +++ b/net/http.lua @@ -118,7 +118,7 @@ function request(u, ex, callback) req.onlystatus = ex.onlystatus; body = ex.body; if body then - method = "POST "; + method = "POST"; headers["Content-Length"] = tostring(#body); headers["Content-Type"] = "application/x-www-form-urlencoded"; end |