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 targos committed Oct 18, 2017
1 parent 5a18670 commit 6670b35
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 @@ -1902,7 +1902,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 6670b35

Please sign in to comment.