From c01361fc604351ebd837197856fdaedbb8a5e5bc Mon Sep 17 00:00:00 2001 From: Augusto Goulart Date: Wed, 29 Aug 2018 01:07:36 -0300 Subject: [PATCH] docs: Response object should call .send() and not .end() (#671) --- docs/http.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/http.md b/docs/http.md index 871bb13..3f59506 100644 --- a/docs/http.md +++ b/docs/http.md @@ -16,7 +16,7 @@ module.exports = app => { // Add a new route router.get('/hello-world', (req, res) => { - res.end('Hello World') + res.send('Hello World') }) } ```