Skip to content

Commit 239d5ec

Browse 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

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/parallel/test-http2-origin.js

+8
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)