mirror of https://github.com/nodejs/node.git
Client.onend: Anticipate that the HTTP parser object is uninitialized when the client setup failed.
parent
d9fbb8a580
commit
4b19bd2896
|
@ -916,7 +916,7 @@ function Client ( ) {
|
||||||
});
|
});
|
||||||
|
|
||||||
self.onend = function () {
|
self.onend = function () {
|
||||||
parser.finish();
|
if (parser) parser.finish();
|
||||||
debug("self got end closing. readyState = " + self.readyState);
|
debug("self got end closing. readyState = " + self.readyState);
|
||||||
self.end();
|
self.end();
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue