diff --git a/README.md b/README.md index 231739114..3eaec064f 100644 --- a/README.md +++ b/README.md @@ -1036,7 +1036,8 @@ the server sent a compressed response. console.log('server encoded the data as: ' + (response.headers['content-encoding'] || 'identity')) console.log('the decoded data is: ' + body) } - ).on('data', function(data) { + ) + .on('data', function(data) { // decompressed data as it is received console.log('decoded chunk: ' + data) })