diff --git a/lib/http.js b/lib/http.js index 889fa25b7e..d9633024d7 100644 --- a/lib/http.js +++ b/lib/http.js @@ -1163,6 +1163,7 @@ exports.get = function(options, cb) { options.method = 'GET'; var req = exports.request(options, cb); req.end(); + return req; }; diff --git a/src/node_http_parser.cc b/src/node_http_parser.cc index 31e0ae5b60..7390a71127 100644 --- a/src/node_http_parser.cc +++ b/src/node_http_parser.cc @@ -229,7 +229,6 @@ class Parser : public ObjectWrap { } parser->Wrap(args.This()); - assert(!current_buffer); return args.This(); }