diff options
| author | ruki <[email protected]> | 2020-11-24 23:02:54 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-11-24 23:02:54 +0800 |
| commit | b6ddb3b69b5cbf0f6068df78a0a38834eb9da68e (patch) | |
| tree | 3791d829095b029a495974301b4ef201bf5920f4 /xmake/modules | |
| parent | 253f2062cf56f48379092793469f063a9f0f504c (diff) | |
improve default platform for msys/mingw
Diffstat (limited to 'xmake/modules')
| -rw-r--r-- | xmake/modules/net/http/download.lua | 2 |
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() |
