File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ local http_util = require("http_util")
33
44local client_1 = http .client ()
55local 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 })
88local client_5 = http .client ({basic_auth_user = " admin" , basic_auth_password = " 123456" })
99local client_6 = http .client ({headers = {simple_header = " check_header" }})
1010local client_7 = http .client ({user_agent = " check_ua" })
@@ -39,7 +39,7 @@ local _, err = client_3:do_request(req)
3939if err == nil then error (" must be error" ) end
4040print (" 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" )
4343if err then error (err ) end
4444req :set_basic_auth (" admin" , " 123456" )
4545local resp , err = client_4 :do_request (req )
You can’t perform that action at this time.
0 commit comments