Browse Source

Closer to a working pipe

v0.7.4-release
Ryan Dahl 14 years ago
parent
commit
2944e03a03
  1. 4
      lib/http.js
  2. 5
      test/disabled/pipe-test.js

4
lib/http.js

@ -196,6 +196,8 @@ function IncomingMessage (socket) {
this.headers = {}; this.headers = {};
this.trailers = {}; this.trailers = {};
this.readable = true;
// request (server) only // request (server) only
this.url = ""; this.url = "";
@ -291,6 +293,8 @@ function OutgoingMessage (socket) {
this.output = []; this.output = [];
this.outputEncodings = []; this.outputEncodings = [];
this.writable = true;
this._last = false; this._last = false;
this.chunkedEncoding = false; this.chunkedEncoding = false;
this.shouldKeepAlive = true; this.shouldKeepAlive = true;

5
test/disabled/pipe-test.js

@ -100,11 +100,6 @@ function startClient () {
gotThanks = true; gotThanks = true;
}); });
}); });
client.on('error', function (e) {
console.log("http client-side error: " + e.message);
process.exit(2);
});
} }
process.on('exit', function () { process.on('exit', function () {

Loading…
Cancel
Save