aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorsinanmohd <sinan@sinanmohd.com>2023-10-01 16:31:30 +0530
committersinanmohd <sinan@sinanmohd.com>2023-10-01 19:59:15 +0530
commitfee405edd055656dd63690e03a0d3e1fc0e96b4e (patch)
tree069ec4d564b2b05f6223a73fc4a696a745a9ffea /lib
parente55ed555257f2ee7ede064c430ffd84cc165b334 (diff)
server: init opensubtitles
Diffstat (limited to 'lib')
-rw-r--r--lib/curl.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/curl.lua b/lib/curl.lua
index bcbcfe4..0728def 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} ' ..
- url .. gen_head(headr)
+ cmd = "curl -s --compressed --write-out %{http_code} '" ..
+ url .. "' --globoff --location " .. gen_head(headr)
if args then
cmd = cmd .. ' ' .. args
end