Skip to content

Commit bf3e411

Browse files
catbro666pintsized
authored andcommitted
fix some return value errors
1 parent f2f7460 commit bf3e411

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/resty/http_connect.lua

+3-3
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ local function connect(self, options)
166166
local proxy_uri_t
167167
proxy_uri_t, err = self:parse_uri(proxy_uri)
168168
if not proxy_uri_t then
169-
return nil, "uri parse error: ", err
169+
return nil, "uri parse error: " .. err
170170
end
171171

172172
local proxy_scheme = proxy_uri_t[1]
@@ -260,7 +260,7 @@ local function connect(self, options)
260260
if not ok then
261261
return nil, "failed to connect to: " .. (proxy_host or "") ..
262262
":" .. (proxy_port or "") ..
263-
": ", err
263+
": " .. err
264264
end
265265

266266
if ssl and sock:getreusedtimes() == 0 then
@@ -280,7 +280,7 @@ local function connect(self, options)
280280
})
281281

282282
if not res then
283-
return nil, "failed to issue CONNECT to proxy:", err
283+
return nil, "failed to issue CONNECT to proxy: " .. err
284284
end
285285

286286
if res.status < 200 or res.status > 299 then

0 commit comments

Comments
 (0)