summaryrefslogtreecommitdiff
path: root/lib/_http_common.js
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2013-07-25 19:33:15 -0700
committerisaacs <i@izs.me>2013-08-08 13:01:09 -0700
commit967b5dbb453f811060645c9bd2bcc8ca8fef0d96 (patch)
tree9d958e25f0a5a247a3dad66b845425b54592c5c1 /lib/_http_common.js
parentcec81593d7e42c83b9498be5835defb24d1743bd (diff)
downloadnodejs-967b5dbb453f811060645c9bd2bcc8ca8fef0d96.tar.gz
nodejs-967b5dbb453f811060645c9bd2bcc8ca8fef0d96.tar.bz2
nodejs-967b5dbb453f811060645c9bd2bcc8ca8fef0d96.zip
http: Use streams3 directly, not .ondata/end
Diffstat (limited to 'lib/_http_common.js')
-rw-r--r--lib/_http_common.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/_http_common.js b/lib/_http_common.js
index 1ed8abc8c..4cf30eeeb 100644
--- a/lib/_http_common.js
+++ b/lib/_http_common.js
@@ -55,6 +55,7 @@ function parserOnHeaders(headers, url) {
// info.url is not set for response parsers but that's not
// applicable here since all our parsers are request parsers.
function parserOnHeadersComplete(info) {
+ debug('parserOnHeadersComplete', info);
var parser = this;
var headers = info.headers;
var url = info.url;
@@ -200,11 +201,8 @@ function freeParser(parser, req) {
if (parser) {
parser._headers = [];
parser.onIncoming = null;
- if (parser.socket) {
- parser.socket.onend = null;
- parser.socket.ondata = null;
+ if (parser.socket)
parser.socket.parser = null;
- }
parser.socket = null;
parser.incoming = null;
parsers.free(parser);