summaryrefslogtreecommitdiff
path: root/xmake
diff options
context:
space:
mode:
Diffstat (limited to 'xmake')
-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})