summaryrefslogtreecommitdiff
path: root/xmake/modules/net/http
diff options
context:
space:
mode:
authorruki <[email protected]>2021-04-23 22:52:16 +0800
committerruki <[email protected]>2021-04-23 22:52:16 +0800
commitef17fec2bc80c6ec4ad537e74748762d18e92606 (patch)
tree942101eedb185802da7b29c948ed8fd14d501911 /xmake/modules/net/http
parent99a6f5326cecd709c2927b6f50efb59a9a50c4a0 (diff)
improve proxy to support mirror url
Diffstat (limited to 'xmake/modules/net/http')
-rw-r--r--xmake/modules/net/http/download.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/net/http/download.lua b/xmake/modules/net/http/download.lua
index aad644416..7a90ac8bc 100644
--- a/xmake/modules/net/http/download.lua
+++ b/xmake/modules/net/http/download.lua
@@ -64,7 +64,7 @@ function _curl_download(tool, url, outputfile, opt)
end
-- use proxy?
- local proxy_conf = proxy.get(url)
+ local proxy_conf = proxy.config(url)
if proxy_conf then
table.insert(argv, "-x")
table.insert(argv, proxy_conf)
@@ -114,7 +114,7 @@ function _wget_download(tool, url, outputfile, opt)
end
-- use proxy?
- local proxy_conf = proxy.get(url)
+ local proxy_conf = proxy.config(url)
if proxy_conf then
table.insert(argv, "-e")
table.insert(argv, "use_proxy=yes")