Skip to content

Commit

Permalink
fix: fix internal httpError files resolution paths.
Browse files Browse the repository at this point in the history
  • Loading branch information
teclone committed Jul 21, 2018
1 parent 385996c commit fff33e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/StaticFileServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ export default class {
*/
serveHttpErrorFile(response, status, baseDir, filePath) {
if (!filePath)
filePath = '../httpErrors/' + status + '.html';
filePath = path.join(__dirname, '../httpErrors/' + status + '.html');
else
filePath = path.join(this.rootDir, '/', baseDir, '/', filePath);

Expand Down

0 comments on commit fff33e0

Please sign in to comment.