mirror of
https://github.com/lxsang/antd-web-apps
synced 2024-11-20 10:18:21 +01:00
commit
f03d18499b
@ -221,7 +221,6 @@ function DocController:asset(...)
|
|||||||
|
|
||||||
if self.registry.fileaccess and ulib.exists(path) then
|
if self.registry.fileaccess and ulib.exists(path) then
|
||||||
local mime = std.mimeOf(path)
|
local mime = std.mimeOf(path)
|
||||||
print(mime)
|
|
||||||
if POLICY.mimes[mime] then
|
if POLICY.mimes[mime] then
|
||||||
std.sendFile(path)
|
std.sendFile(path)
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user