aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsinanmohd <sinan@sinanmohd.com>2023-10-02 11:48:29 +0530
committersinanmohd <sinan@sinanmohd.com>2023-10-02 12:09:55 +0530
commit218255867f80ec0e093a38f6b5254f1578f5a331 (patch)
treef1a42e0d69563873a33a27be6a61df8734e9b38c
parent9ea6ff9c398a089eec10e84297d68365fe765753 (diff)
lib/curl: scode -> hcode
-rw-r--r--lib/curl.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/curl.lua b/lib/curl.lua
index 5ea1d4a..db501db 100644
--- a/lib/curl.lua
+++ b/lib/curl.lua
@@ -18,7 +18,7 @@ local head_to_args = function (t)
end
local get = function (url, headr, args)
- local fetch, scode, def_args
+ local fetch, hcode, def_args
def_args = {
'curl',
@@ -36,10 +36,10 @@ local get = function (url, headr, args)
args = util.array_merge(args, head_to_args(headr))
fetch = util.run(args)
- scode = fetch:match('%d*$') or 000
+ hcode = fetch:match('%d*$') or 000
fetch = fetch:gsub('%s*%d*$', '')
- return fetch, tonumber(scode)
+ return fetch, tonumber(hcode)
end
local zip_to_local_file = function (url, headr, out, retries)