diff --git a/pages/articles/HTTP/clients/how-to-create-a-HTTP-request/content.md b/pages/articles/HTTP/clients/how-to-create-a-HTTP-request/content.md index b7ca79d..93b3ffc 100644 --- a/pages/articles/HTTP/clients/how-to-create-a-HTTP-request/content.md +++ b/pages/articles/HTTP/clients/how-to-create-a-HTTP-request/content.md @@ -14,12 +14,12 @@ As an example, we are going to preform a GET request to [www.random.org/integers callback = function(response) { var str = ''; - //another chunk of data has been recieved, so append it to `str` + //another chunk of data has been received, so append it to `str` response.on('data', function (chunk) { str += chunk; }); - //the whole response has been recieved, so we just print it out here + //the whole response has been received, so we just print it out here response.on('end', function () { console.log(str); });