Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2010-10-11 12:22:38 +0400
committerRyan Dahl <ry@tinyclouds.org>2010-10-11 12:22:38 +0400
commit2944e03a030022e1420634b87e3a44e775184425 (patch)
treec8e6460d16bd397e58e9f466dff1141aa2099621 /lib/http.js
parent007881b6480e2ba67674b7949e6dbc6efec588fe (diff)
Closer to a working pipe
Diffstat (limited to 'lib/http.js')
-rwxr-xr-xlib/http.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/http.js b/lib/http.js
index fd7e9b68f82..ecf67749c31 100755
--- a/lib/http.js
+++ b/lib/http.js
@@ -196,6 +196,8 @@ function IncomingMessage (socket) {
this.headers = {};
this.trailers = {};
+ this.readable = true;
+
// request (server) only
this.url = "";
@@ -291,6 +293,8 @@ function OutgoingMessage (socket) {
this.output = [];
this.outputEncodings = [];
+ this.writable = true;
+
this._last = false;
this.chunkedEncoding = false;
this.shouldKeepAlive = true;