headersSent alias for headerSent
i like keeping things as similar to node as possible :)
This commit is contained in:
parent
cb60fb872a
commit
6492f2ca4a
1 changed files with 4 additions and 1 deletions
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Module dependencies.
|
* Module dependencies.
|
||||||
*/
|
*/
|
||||||
|
@ -607,6 +606,10 @@ module.exports = {
|
||||||
get headerSent() {
|
get headerSent() {
|
||||||
return this.res.headersSent;
|
return this.res.headersSent;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
get headersSent() {
|
||||||
|
return this.res.headersSent;
|
||||||
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Throw an error with `msg` and optional `status`
|
* Throw an error with `msg` and optional `status`
|
||||||
|
|
Loading…
Reference in a new issue