Skip to content

Commit 1cf12f1

Browse files
islandryucaitp
authored andcommitted
Fix missing code in diagnostics example (nodejs#4195)
1 parent b8b5604 commit 1cf12f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/docs/api/DiagnosticsChannel.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ diagnosticsChannel.channel('undici:request:create').subscribe(({ request }) => {
1919
console.log('completed', request.completed)
2020
console.log('method', request.method)
2121
console.log('path', request.path)
22-
console.log('headers') // array of strings, e.g: ['foo', 'bar']
22+
console.log('headers', request.headers) // array of strings, e.g: ['foo', 'bar']
2323
request.addHeader('hello', 'world')
2424
console.log('headers', request.headers) // e.g. ['foo', 'bar', 'hello', 'world']
2525
})

0 commit comments

Comments
 (0)