diff options
author | sinanmohd <sinan@sinanmohd.com> | 2023-09-30 15:56:26 +0530 |
---|---|---|
committer | sinanmohd <sinan@sinanmohd.com> | 2023-09-30 15:56:26 +0530 |
commit | 84c397679c6f763fab2e912a6b97076320d66dd1 (patch) | |
tree | 3dc68fb4f092d42389eae94b8c1bab32e2515829 /lib | |
parent | 8504585b962e7ec467c7315af2e6d93a9325c4f9 (diff) |
lib/curl: clean up
Diffstat (limited to 'lib')
-rw-r--r-- | lib/curl.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/curl.lua b/lib/curl.lua index 8bc4eec..bcbcfe4 100644 --- a/lib/curl.lua +++ b/lib/curl.lua @@ -21,8 +21,8 @@ local get = function (url, headr, args) local cmd, fetch, scode headr = util.table_merge(headr, def_headr) - cmd = 'curl -s --compressed --write-out %{http_code} ' - cmd = cmd .. url .. gen_head(headr) + cmd = 'curl -s --compressed --write-out %{http_code} ' .. + url .. gen_head(headr) if args then cmd = cmd .. ' ' .. args end |