From 74ac4117966144d97899c72868fb5a6a122cfcaf Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Wed, 31 Aug 2011 23:25:04 +0500 Subject: net.http: Remove extra space after method in request status line for POST. --- net/http.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'net') 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 -- cgit v1.2.3