mirror of
https://github.com/lxsang/antd-web-apps
synced 2025-07-17 06:09:50 +02:00
fix
This commit is contained in:
@ -97,12 +97,7 @@ function AssetController:get(...)
|
||||
if self.registry.fileaccess and ulib.exists(path) then
|
||||
local mime = std.mimeOf(path)
|
||||
if POLICY.mimes[mime] then
|
||||
std.header(mime)
|
||||
if std.isBinary(path) then
|
||||
std.fb(path)
|
||||
else
|
||||
std.f(path)
|
||||
end
|
||||
std.sendFile(path)
|
||||
else
|
||||
self:error("Access forbidden: "..path)
|
||||
end
|
||||
|
Reference in New Issue
Block a user