Skip to content
Browse files

[fix] Added missing properties, Fixes #25

  • Loading branch information...
1 parent 0259158 commit 6c093d1f6a70c614c401754cd13fcae2120f3a31 @pksunkara pksunkara committed Mar 25, 2012
Showing with 4 additions and 1 deletion.
  1. +1 −0 lib/http-stream.js
  2. +2 −0 lib/request-stream.js
  3. +1 −1 lib/response-stream.js
View
1 lib/http-stream.js
@@ -30,6 +30,7 @@ util.inherits(HttpStream, BufferedStream);
//
HttpStream.prototype.pipeState = function (source) {
this.headers = source.headers;
+ this.trailers = source.trailers;
this.method = source.method;
if (source.url) {
View
2 lib/request-stream.js
@@ -31,6 +31,8 @@ util.inherits(RequestStream, HttpStream);
RequestStream.prototype.pipeRequest = function (source) {
this.url = source.url;
this.method = source.method;
+ this.httpVersion = source.httpVersion;
+ this.setEncoding = source.setEncoding;
if (source.query) {
this.query = source.query;
View
2 lib/response-stream.js
@@ -60,7 +60,7 @@ ResponseStream.prototype.writeHead = function (statusCode, headers) {
// Create pass-thru for the necessary
// `http.ServerResponse` methods.
//
-['setHeader', 'getHeader', 'removeHeader'].forEach(function (method) {
+['setHeader', 'getHeader', 'removeHeader', 'addTrailers'].forEach(function (method) {
ResponseStream.prototype[method] = function () {
return this.response[method].apply(this.response, arguments);
};

0 comments on commit 6c093d1

Please sign in to comment.
Something went wrong with that request. Please try again.