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 <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>
  • Loading branch information
fshaikh authored and BethGriggs committed Apr 28, 2019
1 parent 71c3d2e commit 2936958
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/parallel/test-http2-origin.js
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 2936958

Please sign in to comment.