Skip to content

Commit

Permalink
doc: remove undefined reference variable
Browse files Browse the repository at this point in the history
Remove undefined reference variable 'common' from http2 API

PR-URL: #16106
Fixes: #16068
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
adarsh2397 authored and joyeecheung committed Oct 12, 2017
1 parent 2016ad3 commit a84e10e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion doc/api/http2.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a84e10e

Please sign in to comment.