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.
*/ */
@ -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`