Skip to content

Commit 1120af7

Browse files
Tieskepintsized
authored andcommitted
fix(deprecated) do not use deprecated method
1 parent d83df5d commit 1120af7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/resty/http_connect.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ local function connect(self, options)
213213

214214
-- Now do the ssl handshake
215215
if ssl and sock:getreusedtimes() == 0 then
216-
local ok, err = self:ssl_handshake(nil, ssl_server_name, ssl_verify, ssl_send_status_req)
216+
local ok, err = sock:sslhandshake(nil, ssl_server_name, ssl_verify, ssl_send_status_req)
217217
if not ok then
218218
self:close()
219219
return nil, err

0 commit comments

Comments
 (0)