Software /
code /
prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
4368:916834f22d1b | 4369:3578ff5d3674 |
---|---|
116 | 116 |
117 if ex then | 117 if ex then |
118 req.onlystatus = ex.onlystatus; | 118 req.onlystatus = ex.onlystatus; |
119 body = ex.body; | 119 body = ex.body; |
120 if body then | 120 if body then |
121 method = "POST "; | 121 method = "POST"; |
122 headers["Content-Length"] = tostring(#body); | 122 headers["Content-Length"] = tostring(#body); |
123 headers["Content-Type"] = "application/x-www-form-urlencoded"; | 123 headers["Content-Type"] = "application/x-www-form-urlencoded"; |
124 end | 124 end |
125 if ex.method then method = ex.method; end | 125 if ex.method then method = ex.method; end |
126 if ex.headers then | 126 if ex.headers then |