Handling parameters for file streaming

This commit is contained in:
MrFry 2019-11-11 13:55:59 +01:00
parent 29317cc29a
commit 8b9e3ee75d
2 changed files with 3 additions and 3 deletions

View file

@ -97,10 +97,10 @@ function appGetFileType (app, wildcard, contentType, pageToRender) {
}
} else {
logger.LogReq(req)
let fname = p.split('/')
let fname = fpath.split('/')
fname = fname.pop()
res.render(pageToRender, {
path: p,
path: fp,
fname,
url,
contentType,