headersSent alias for headerSent

i like keeping things as similar to node as possible :)
This commit is contained in:
Jonathan Ong 2013-10-23 22:38:06 -07:00
parent cb60fb872a
commit 6492f2ca4a

View file

@ -1,4 +1,3 @@
/** /**
* Module dependencies. * Module dependencies.
*/ */
@ -608,6 +607,10 @@ module.exports = {
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`
* defaulting to 500. Note that these are user-level * defaulting to 500. Note that these are user-level