doc: remove undefined reference variable

Remove undefined reference variable 'common' from http2 API

PR-URL: https://github.com/nodejs/node/pull/16106
Fixes: https://github.com/nodejs/node/issues/16068
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
Adarsh Honawad 2017-10-09 23:09:26 +05:30 committed by Joyee Cheung
parent 2016ad3035
commit a84e10eba0

View File

@ -1899,7 +1899,9 @@ const req = client.request({
':authority': `localhost:${port}`
});
req.on('response', common.mustCall());
req.on('response', (headers) => {
console.log(headers[http2.constants.HTTP2_HEADER_STATUS]);
});
let data = '';
req.setEncoding('utf8');
req.on('data', (chunk) => data += chunk);