From 218255867f80ec0e093a38f6b5254f1578f5a331 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Mon, 2 Oct 2023 11:48:29 +0530 Subject: lib/curl: scode -> hcode --- lib/curl.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib') 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) -- cgit v1.2.3