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:
parent
2016ad3035
commit
a84e10eba0
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user