Bind notFoundGenerator

This commit is contained in:
Bryan Ashby 2018-04-24 19:58:59 -06:00
parent a0cd8fed83
commit 69ced917f3
1 changed files with 1 additions and 1 deletions

View File

@ -140,7 +140,7 @@ exports.getModule = class GopherModule extends ServerModule {
break;
}
}
generator = generator || this.notFoundGenerator;
generator = generator || this.notFoundGenerator.bind(this);
generator(match, res => {
socket.end(`${res}`);
});