summaryrefslogtreecommitdiffstats
path: root/lem/http.lua
diff options
context:
space:
mode:
authorEmil Renner Berthing <esmil@mailme.dk>2013-01-26 16:52:03 +0100
committerEmil Renner Berthing <esmil@mailme.dk>2013-01-26 16:52:03 +0100
commit6fe36655ffff1719b3fd1d9510f3d494e7548ea7 (patch)
tree9c2969d3b90ae67e4c57ea0d251420ad3bedec3d /lem/http.lua
parent4f582e0be0bd6afbae2ba0fb0e747410bc3a5d42 (diff)
downloadlem-6fe36655ffff1719b3fd1d9510f3d494e7548ea7.tar.gz
lem-6fe36655ffff1719b3fd1d9510f3d494e7548ea7.tar.xz
lem-6fe36655ffff1719b3fd1d9510f3d494e7548ea7.zip
http: fix req:body() with Expect: 100-continue
Diffstat (limited to 'lem/http.lua')
-rw-r--r--lem/http.lua2
1 files changed, 1 insertions, 1 deletions
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