1
0
mirror of https://github.com/lxsang/antd-web-apps synced 2024-12-25 17:08:22 +01:00

Fix PDF export problem
All checks were successful
gitea-sync/antd-web-apps/pipeline/head This commit looks good

This commit is contained in:
lxsang 2022-11-08 10:32:26 +01:00
parent 452e3c5343
commit b10ecfc259

View File

@ -57,9 +57,7 @@ function IndexController:pdf(...)
print(cmd)
local r = os.execute(cmd)
if r then
local mime = std.mimeOf(tmp_file)
std.header(mime)
std.f(tmp_file)
std.sendFile(tmp_file)
return false
else
return self:error("Sorry.Problem generate PDF file")