Skip to content

Commit a84e10e

Browse files
adarsh2397joyeecheung
authored andcommitted
doc: remove undefined reference variable
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>
1 parent 2016ad3 commit a84e10e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

doc/api/http2.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -1899,7 +1899,9 @@ const req = client.request({
18991899
':authority': `localhost:${port}`
19001900
});
19011901

1902-
req.on('response', common.mustCall());
1902+
req.on('response', (headers) => {
1903+
console.log(headers[http2.constants.HTTP2_HEADER_STATUS]);
1904+
});
19031905
let data = '';
19041906
req.setEncoding('utf8');
19051907
req.on('data', (chunk) => data += chunk);

0 commit comments

Comments
 (0)