fix combine filename

This commit is contained in:
2023-07-28 03:06:30 +08:00
committed by 阿男
parent 6cb2faed7c
commit ee53eac754
2 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ end
local file_to_check = string.match(ngx.var.request_uri, ".*/(.*)")
local file_dir = ngx.var.tmp_file_dir
local fullpath = file_dir .. "/" .. file_to_check .. ".png";
local fullpath = file_dir .. "/" .. file_to_check;
ngx.log(ngx.INFO, "FILE TO CHECK -> ", fullpath)
ngx.say(file_exists(fullpath))