This commit is contained in:
XiaoLi
2022-08-25 19:15:32 +08:00
committed by 阿男
parent 0450fbd769
commit 33cede63aa
6 changed files with 28 additions and 6 deletions
+2 -1
View File
@@ -5,6 +5,7 @@ package.path = package.path .. ';<SCRIPT_PATH>/?.lua';
local pl = require "pl.pretty"
local http = require 'resty.http'
local cjson = require "cjson"
local yun_download = require("lib.upyun_download")
local Upt = require("lib.upt")
@@ -16,7 +17,7 @@ local function upyun_download_file()
local uri = ngx.unescape_uri(ngx.var.arg_uri)
ngx.log(ngx.INFO, "REQUEST UPYUN DOWNLOAD : URI -> " .. uri)
yun_download.upyun_download(httpc, Upt, pl, uri)
yun_download.upyun_download(httpc, cjson, Upt, pl, uri)
end