summaryrefslogtreecommitdiff
path: root/xmake/modules/net/http
diff options
context:
space:
mode:
authorruki <[email protected]>2020-11-24 23:02:54 +0800
committerruki <[email protected]>2020-11-24 23:02:54 +0800
commitb6ddb3b69b5cbf0f6068df78a0a38834eb9da68e (patch)
tree3791d829095b029a495974301b4ef201bf5920f4 /xmake/modules/net/http
parent253f2062cf56f48379092793469f063a9f0f504c (diff)
improve default platform for msys/mingw
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 f4a21faef..e076836d1 100644
--- a/xmake/modules/net/http/download.lua
+++ b/xmake/modules/net/http/download.lua
@@ -39,7 +39,7 @@ function _get_user_agent()
if osver then
os_user_agent = ("Intel Mac OS X " .. (osver or "")):trim()
end
- elseif is_host("linux", "msys", "cygwin") then
+ elseif is_subhost("linux", "msys", "cygwin") then
local osver = try { function () return os.iorun("uname -r") end }
if osver then
os_user_agent = (os_user_agent .. " " .. (osver or "")):trim()