Skip to content

Commit

Permalink
it fixes markserv#82
Browse files Browse the repository at this point in the history
  • Loading branch information
Chaillet Maxime committed Apr 30, 2020
1 parent 2774d43 commit bfa6804
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,10 @@ const createRequestHandler = flags => {
}),

file: (url, opts) => new Promise(resolve => {
if (!url) {
return resolve(false)
}

const absUrl = path.join(opts.baseDir, url)
getFile(absUrl)
.then(data => {
Expand Down

0 comments on commit bfa6804

Please sign in to comment.