Bind notFoundGenerator
This commit is contained in:
parent
a0cd8fed83
commit
69ced917f3
|
@ -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}`);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue