change to PNG

This commit is contained in:
2022-08-22 23:59:02 +08:00
parent ae5a0c0337
commit 980fec142f
3 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -7,7 +7,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 .. ".jpeg";
local fullpath = file_dir .. "/" .. file_to_check .. ".png";
ngx.log(ngx.INFO, "FILE TO CHECK -> ", fullpath)
ngx.say(file_exists(fullpath))