Software /
code /
prosody
Diff
net/http.lua @ 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 |
parent | 4356:10a4f3b081a7 |
child | 4471:ea24d73e6c94 |
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