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.
|
||||
*/
|
||||
|
@ -608,6 +607,10 @@ module.exports = {
|
|||
return this.res.headersSent;
|
||||
},
|
||||
|
||||
get headersSent() {
|
||||
return this.res.headersSent;
|
||||
},
|
||||
|
||||
/**
|
||||
* Throw an error with `msg` and optional `status`
|
||||
* defaulting to 500. Note that these are user-level
|
||||
|
|
Loading…
Reference in a new issue