Browse files

set `headerSent` on `header` event

  • Loading branch information...
1 parent 47bbb17 commit 16c9a0baf1b9142e6a2efdd0d351cd5552ff71cf @fent fent committed Feb 12, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/response-stream.js
View
1 lib/response-stream.js
@@ -57,6 +57,7 @@ var ResponseStream = module.exports = function (options) {
this.response._renderHeaders = function () {
if (!self._emittedHeader) {
self._emittedHeader = true;
+ self.headerSent = true;
self.emit('header');
}
return self._renderHeaders.call(self.response);

0 comments on commit 16c9a0b

Please sign in to comment.