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,
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit cbfaffa70ceb29b4beac4b13f6cbb4b85baac8a8
|
||||
Subproject commit fe74436ab119a31fdb35f7a3bbae50a572b0fb21
|
Loading…
Add table
Add a link
Reference in a new issue