| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent f9d783a commit 6671efa
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -568,6 +568,8 @@ Example: | |||
| 568 | 568 | ||
| 569 | 569 | http.get("http://www.google.com/index.html", function(res) { | |
| 570 | 570 | console.log("Got response: " + res.statusCode); | |
| 571 | + // consume response body | ||
| 572 | + res.resume(); | ||
| 571 | 573 | }).on('error', function(e) { | |
| 572 | 574 | console.log("Got error: " + e.message); | |
| 573 | 575 | }); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments