diff options
Diffstat (limited to 'src/http.lua')
-rw-r--r-- | src/http.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http.lua b/src/http.lua index 4ef2c87..212e8f6 100644 --- a/src/http.lua +++ b/src/http.lua | |||
@@ -553,7 +553,7 @@ function Public.request_cb(request, response) | |||
553 | sock, response.error = socket.connect(parsed.host, parsed.port) | 553 | sock, response.error = socket.connect(parsed.host, parsed.port) |
554 | if not sock then return response end | 554 | if not sock then return response end |
555 | -- set connection timeout so that we do not hang forever | 555 | -- set connection timeout so that we do not hang forever |
556 | sock:timeout(Public.TIMEOUT) | 556 | sock:settimeout(Public.TIMEOUT) |
557 | -- send request message | 557 | -- send request message |
558 | response.error = Private.send_request(sock, request.method, | 558 | response.error = Private.send_request(sock, request.method, |
559 | Private.request_uri(parsed), request.headers, request.body_cb) | 559 | Private.request_uri(parsed), request.headers, request.body_cb) |