server: fix path resolves
This commit is contained in:
parent
b809229132
commit
d1d7328351
2 changed files with 3 additions and 2 deletions
|
|
@ -2,7 +2,7 @@
|
|||
"name": "open-stage-control",
|
||||
"productName": "Open Stage Control",
|
||||
"description": "Libre and modular OSC / MIDI controller",
|
||||
"version": "1.7.2",
|
||||
"version": "1.7.3",
|
||||
"author": {
|
||||
"name": "Jean-Emmanuel Doucet",
|
||||
"email": "jean-emmanuel@ammd.net"
|
||||
|
|
|
|||
|
|
@ -102,8 +102,9 @@ function httpRoute(req, res) {
|
|||
|
||||
for (var i = -1; i < resolveDirs.length; i++) {
|
||||
var p = i === -1 ? sessionPath : resolveDirs[i]
|
||||
p = path.resolve(path.join(p, url))
|
||||
try {
|
||||
res.sendFile(path.resolve(p, url))
|
||||
res.sendFile(p)
|
||||
return true
|
||||
} catch(e) {}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue