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 239d5ec

Browse filesBrowse files
fshaikhaddaleax
authored andcommitted
test: http2 origin length ERR_HTTP2_ORIGIN_LENGTH
PR-URL: #25296 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent 1e60e0a commit 239d5ec
Copy full SHA for 239d5ec

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

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

‎test/parallel/test-http2-origin.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-http2-origin.js
+8Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,14 @@ const ca = readKey('fake-startcom-root-cert.pem', 'binary');
7070
}
7171
);
7272
});
73+
const longInput = 'http://foo.bar' + 'a'.repeat(16383);
74+
throws(
75+
() => session.origin(longInput),
76+
{
77+
code: 'ERR_HTTP2_ORIGIN_LENGTH',
78+
name: 'TypeError [ERR_HTTP2_ORIGIN_LENGTH]'
79+
}
80+
);
7381
}));
7482

7583
server.listen(0, mustCall(() => {

0 commit comments

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