Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

set `headerSent` on `header` event

  • Loading branch information...
commit 16c9a0baf1b9142e6a2efdd0d351cd5552ff71cf 1 parent 47bbb17
@fent fent authored
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.
Something went wrong with that request. Please try again.