Software /
code /
prosody
Changeset
4369:3578ff5d3674
net.http: Remove extra space after method in request status line for POST.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Wed, 31 Aug 2011 23:25:04 +0500 |
parents | 4368:916834f22d1b |
children | 4370:be14f96290a4 |
files | net/http.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/net/http.lua Wed Aug 31 23:24:13 2011 +0500 +++ b/net/http.lua Wed Aug 31 23:25:04 2011 +0500 @@ -118,7 +118,7 @@ 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