Browse Source

Client.onend: Anticipate that the HTTP parser object is uninitialized when the client setup failed.

v0.7.4-release
Ben Noordhuis 15 years ago
committed by Ryan Dahl
parent
commit
4b19bd2896
  1. 2
      lib/http.js

2
lib/http.js

@ -916,7 +916,7 @@ function Client ( ) {
});
self.onend = function () {
parser.finish();
if (parser) parser.finish();
debug("self got end closing. readyState = " + self.readyState);
self.end();
};

Loading…
Cancel
Save