Skip to content

Commit

Permalink
Fixed custom 404 pages (#218)
Browse files Browse the repository at this point in the history
  • Loading branch information
rosszurowski authored and leo committed Jul 2, 2017
1 parent dae446e commit 0234ba4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ module.exports = coroutine(function*(req, res, flags, current, ignoredFiles) {

const relatedExists = yield fs.exists(related)

if (!relatedExists && flags.single === undefined) {
if (!relatedExists && !flags.single) {
return micro.send(res, 404, notFoundResponse)
}

Expand Down

0 comments on commit 0234ba4

Please sign in to comment.