server: don't use path.resove on assets (fails on windows) and fix regexp
This commit is contained in:
parent
665515b626
commit
d0a76d4ce3
1 changed files with 1 additions and 1 deletions
|
|
@ -187,7 +187,7 @@ class WebServer extends EventEmitter {
|
|||
} else {
|
||||
|
||||
if (
|
||||
path.resolve(url).match(/^\/assets|client\//)
|
||||
url.match(/^\/+(assets|client)\//)
|
||||
) {
|
||||
|
||||
// osc asset files
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue