From 4f66cbdbabc19e1b52ad3d82a800e2b892254718 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Mon, 26 May 2014 00:55:18 -0300 Subject: Fix curl --connect-timeout option following #261. --- src/luarocks/fs/win32/tools.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/luarocks/fs/win32/tools.lua b/src/luarocks/fs/win32/tools.lua index 21d846b9..a8b2a1db 100644 --- a/src/luarocks/fs/win32/tools.lua +++ b/src/luarocks/fs/win32/tools.lua @@ -274,7 +274,7 @@ function tools.download(url, filename, cache) elseif cfg.downloader == "curl" then local curl_cmd = vars.CURL.." -f -k -L --user-agent \""..cfg.user_agent.." via curl\" " if cfg.connection_timeout and cfg.connection_timeout > 0 then - curl_cmd = curl_cmd .. "--connect-timeout="..tonumber(cfg.connection_timeout).." " + curl_cmd = curl_cmd .. "--connect-timeout "..tonumber(cfg.connection_timeout).." " end ok = fs.execute_string(curl_cmd..fs.Q(url).." 2> NUL 1> "..fs.Q(filename)) end -- cgit v1.2.3-55-g6feb