From 6fe36655ffff1719b3fd1d9510f3d494e7548ea7 Mon Sep 17 00:00:00 2001 From: Emil Renner Berthing Date: Sat, 26 Jan 2013 16:52:03 +0100 Subject: http: fix req:body() with Expect: 100-continue --- lem/http.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lem/http.lua b/lem/http.lua index dcdbd56..1f972a9 100644 --- a/lem/http.lua +++ b/lem/http.lua @@ -39,7 +39,7 @@ function http.Request:body() if len <= 0 then return body end if self.headers['expect'] == '100-continue' then - local ok, err = self.client:send('HTTP/1.1 100 Continue\r\n\r\n') + local ok, err = self.client:write('HTTP/1.1 100 Continue\r\n\r\n') if not ok then return nil, err end end -- cgit v1.2.1