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/private/action/require/impl/actions/download_resources.lua | |
| parent | 125f6017739c012357b69382972dc849841e32ce (diff) | |
add insecure-ssl
Diffstat (limited to 'xmake/modules/private/action/require/impl/actions/download_resources.lua')
| -rw-r--r-- | xmake/modules/private/action/require/impl/actions/download_resources.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/modules/private/action/require/impl/actions/download_resources.lua b/xmake/modules/private/action/require/impl/actions/download_resources.lua index b7aea15a7..5373fd81f 100644 --- a/xmake/modules/private/action/require/impl/actions/download_resources.lua +++ b/xmake/modules/private/action/require/impl/actions/download_resources.lua @@ -20,6 +20,7 @@ -- imports import("core.base.option") +import("core.base.global") import("core.package.package", {alias = "core_package"}) import("lib.detect.find_file") import("lib.detect.find_directory") @@ -113,7 +114,7 @@ function _download(package, resource_name, resource_url, resource_hash) -- we can use local resource from the search directories directly if network is too slow os.cp(localfile, resource_file) elseif resource_url:find(string.ipattern("https-://")) or resource_url:find(string.ipattern("ftps-://")) then - http.download(resource_url, resource_file) + http.download(resource_url, resource_file, {insecure = global.get("insecure-ssl")}) else raise("invalid resource url(%s)", resource_url) end |
