Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e82111f

Browse filesBrowse files
ycjcl868targos
authored andcommitted
test: http outgoing _headers setter null
Co-authored-by: Qingyu Deng <i@ayase-lab.com> PR-URL: #38881 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Zijian Liu <lxxyxzj@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent f903ad8 commit e82111f
Copy full SHA for e82111f

File tree

Expand file treeCollapse file tree

1 file changed

+11
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+11
-0
lines changed
Open diff view settings
Collapse file

‎test/parallel/test-http-outgoing-internal-headers.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-http-outgoing-internal-headers.js
+11Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,14 @@ common.expectWarning('DeprecationWarning', warn, 'DEP0066');
3131
origin: ['Origin', 'localhost']
3232
}));
3333
}
34+
35+
{
36+
// Tests for _headers set method `null`
37+
const outgoingMessage = new OutgoingMessage();
38+
outgoingMessage._headers = null;
39+
40+
assert.strictEqual(
41+
outgoingMessage[kOutHeaders],
42+
null
43+
);
44+
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.