Skip to content

Commit

Permalink
test: http2 origin length ERR_HTTP2_ORIGIN_LENGTH
Browse files Browse the repository at this point in the history
PR-URL: #25296
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Anto Aravinth <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
  • Loading branch information
fshaikh authored and MylesBorins committed May 16, 2019
1 parent 7655253 commit 374a07d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/parallel/test-http2-origin.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,14 @@ const ca = readKey('fake-startcom-root-cert.pem', 'binary');
}
);
});
const longInput = 'http://foo.bar' + 'a'.repeat(16383);
throws(
() => session.origin(longInput),
{
code: 'ERR_HTTP2_ORIGIN_LENGTH',
name: 'TypeError [ERR_HTTP2_ORIGIN_LENGTH]'
}
);
}));

server.listen(0, mustCall(() => {
Expand Down

0 comments on commit 374a07d

Please sign in to comment.