Skip to content

Commit afbc7c1

Browse files
adarsh2397targos
authored andcommitted
doc: remove undefined reference variable
Remove undefined reference variable 'common' from http2 API PR-URL: #16106 Fixes: #16068 Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 1d55d5b commit afbc7c1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

doc/api/http2.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1902,7 +1902,9 @@ const req = client.request({
19021902
':authority': `localhost:${port}`
19031903
});
19041904

1905-
req.on('response', common.mustCall());
1905+
req.on('response', (headers) => {
1906+
console.log(headers[http2.constants.HTTP2_HEADER_STATUS]);
1907+
});
19061908
let data = '';
19071909
req.setEncoding('utf8');
19081910
req.on('data', (chunk) => data += chunk);

0 commit comments

Comments
 (0)