diff options
| author | ruki <[email protected]> | 2022-10-25 22:37:21 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-10-25 09:44:25 +0800 |
| commit | 8323a4d3b7a656eed0aea8ef194d3f6eaaf89118 (patch) | |
| tree | 4e28360101b8b448cabb403c10c885ac814d979a /xmake/modules/net/http | |
| parent | 125f6017739c012357b69382972dc849841e32ce (diff) | |
add insecure-ssl
Diffstat (limited to 'xmake/modules/net/http')
| -rw-r--r-- | xmake/modules/net/http/download.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/xmake/modules/net/http/download.lua b/xmake/modules/net/http/download.lua index 7a90ac8bc..0b266a248 100644 --- a/xmake/modules/net/http/download.lua +++ b/xmake/modules/net/http/download.lua @@ -80,6 +80,11 @@ function _curl_download(tool, url, outputfile, opt) table.insert(argv, user_agent) end + -- ignore to check ssl certificates + if opt.insecure then + table.insert(argv, "-k") + end + -- continue to download? if opt.continue then table.insert(argv, "-C") @@ -140,6 +145,11 @@ function _wget_download(tool, url, outputfile, opt) table.insert(argv, user_agent) end + -- ignore to check ssl certificates + if opt.insecure then + table.insert(argv, "--no-check-certificate") + end + -- continue to download? if opt.continue then table.insert(argv, "-c") |
