diff --git a/lib/http.js b/lib/http.js index ff5450317a..8c9a850f91 100644 --- a/lib/http.js +++ b/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(); };