Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
test: http outgoing _headers setter null
  • Loading branch information
ycjcl868 committed Jun 1, 2021
commit f79367f12c049f33fb763f05ae2ceb1d087d4ab0
11 changes: 11 additions & 0 deletions test/parallel/test-http-outgoing-internal-headers.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,14 @@ common.expectWarning('DeprecationWarning', warn, 'DEP0066');
origin: ['Origin', 'localhost']
}));
}

{
// Tests for _headers set method `null`
const outgoingMessage = new OutgoingMessage();
outgoingMessage._headers = null;

assert.strictEqual(
outgoingMessage[kOutHeaders],
null
)
Comment thread
ycjcl868 marked this conversation as resolved.
Resolved
}