Permalink
Browse files

Fixed response.js to now emit the finish event when the response is e…

…nded, making Restify compatiable with node-logging.
  • Loading branch information...
1 parent 0d4ed2e commit cfdcc8717a466ac9b919a68506e079a64edc06a7 @anroOfCode committed Mar 5, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/response.js
View
@@ -328,6 +328,9 @@ function Response(options) {
return self.emit('pipe', src);
});
+ this.res.on('finish', function (src) {
+ return self.emit('finish', src);
+ }
// Finally write the default headers in
this.defaultHeaders();
}

0 comments on commit cfdcc87

Please sign in to comment.