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,

@ -1 +1 @@
Subproject commit cbfaffa70ceb29b4beac4b13f6cbb4b85baac8a8
Subproject commit fe74436ab119a31fdb35f7a3bbae50a572b0fb21