Skip to content

Commit

Permalink
fix: resolve default http error files in relation to current directory
Browse files Browse the repository at this point in the history
  • Loading branch information
teclone committed Nov 29, 2018
1 parent 2bf15ea commit c5dc233
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/FileServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ export default class FileServer {
*/
serveHttpErrorFile(request, response, status, baseDir, filePath) {
if (!filePath)
filePath = path.resolve('../httpErrors/' + status + '.html');
filePath = path.resolve(__dirname, '../httpErrors/' + status + '.html');
else
filePath = path.resolve(this.rootDir, baseDir, filePath);

Expand Down

0 comments on commit c5dc233

Please sign in to comment.