Skip to content
Permalink
Browse files

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>
  • Loading branch information...
fshaikh authored and addaleax committed Dec 31, 2018
1 parent 1e60e0a commit 239d5ec92c533000fa4900c367c60ac734707e47
Showing with 8 additions and 0 deletions.
  1. +8 −0 test/parallel/test-http2-origin.js
@@ -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(() => {

0 comments on commit 239d5ec

Please sign in to comment.
You can’t perform that action at this time.