summaryrefslogtreecommitdiff
path: root/xmake/modules/net/http
diff options
context:
space:
mode:
authorruki <[email protected]>2019-06-15 00:34:09 +0800
committerruki <[email protected]>2019-06-14 21:24:54 +0800
commitcd6e27d1392acbc56366561fda2bf939e492f16a (patch)
tree37406ffd235fb4a8e124ea50e49fc99df46fc6a5 /xmake/modules/net/http
parent7832cdea276c9699d2b708b3e02ff1d5d443f138 (diff)
fix installer.nsi comment and improve http
Diffstat (limited to 'xmake/modules/net/http')
-rw-r--r--xmake/modules/net/http/download.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/net/http/download.lua b/xmake/modules/net/http/download.lua
index 5a911c24f..90aadcaf5 100644
--- a/xmake/modules/net/http/download.lua
+++ b/xmake/modules/net/http/download.lua
@@ -97,7 +97,7 @@ end
function main(url, outputfile)
-- init output file
- outputfile = outputfile or path.filename(url)
+ outputfile = outputfile or path.filename(url):gsub("%?.+$", "")
-- attempt to download url using curl first
local tool = find_tool("curl", {version = true})