aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/http.lua2
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