mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Handling parameters for file streaming
This commit is contained in:
parent
29317cc29a
commit
8b9e3ee75d
2 changed files with 3 additions and 3 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue