Skip to content

Commit e48e80b

Browse files
authored
rename ssl config 'insecure_skip_verify' to 'insecure_ssl', fix ssl request url (#22)
1 parent 17d2336 commit e48e80b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

http/test/test_client.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ local http_util = require("http_util")
33

44
local client_1 = http.client()
55
local client_2 = http.client({timeout=1})
6-
local client_3 = http.client({insecure_skip_verify=true})
7-
local client_4 = http.client({insecure_skip_verify=false, timeout=1})
6+
local client_3 = http.client({insecure_ssl=false})
7+
local client_4 = http.client({insecure_ssl=true, timeout=1})
88
local client_5 = http.client({basic_auth_user="admin", basic_auth_password="123456"})
99
local client_6 = http.client({headers={simple_header="check_header"}})
1010
local client_7 = http.client({user_agent="check_ua"})
@@ -39,7 +39,7 @@ local _, err = client_3:do_request(req)
3939
if err == nil then error("must be error") end
4040
print("done: http.client:ssl+error")
4141

42-
local req, err = http.request("GET", "http://127.0.0.1:1111/getBasicAuth")
42+
local req, err = http.request("GET", "https://127.0.0.1:1112/getBasicAuth")
4343
if err then error(err) end
4444
req:set_basic_auth("admin", "123456")
4545
local resp, err = client_4:do_request(req)

0 commit comments

Comments
 (0)