diff --git a/doc/api/http.markdown b/doc/api/http.markdown index 091f738be6b2fa..518dae063c52b8 100644 --- a/doc/api/http.markdown +++ b/doc/api/http.markdown @@ -966,6 +966,8 @@ Example: http.get("http://www.google.com/index.html", function(res) { console.log("Got response: " + res.statusCode); + // consume response body + res.resume(); }).on('error', function(e) { console.log("Got error: " + e.message); });