8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e25c65e commit bc92be4Copy full SHA for bc92be4
test/parallel/test-http2-single-headers.js
@@ -27,7 +27,7 @@ server.on('stream', common.mustNotCall());
27
server.listen(0, common.mustCall(() => {
28
const client = http2.connect(`http://localhost:${server.address().port}`);
29
30
- singles.forEach((i) => {
+ for (const i of singles) {
31
assert.throws(
32
() => client.request({ [i]: 'abc', [i.toUpperCase()]: 'xyz' }),
33
{
@@ -45,7 +45,7 @@ server.listen(0, common.mustCall(() => {
45
message: `Header field "${i}" must only have a single value`
46
}
47
);
48
- });
+ }
49
50
server.close();
51
client.close();
0 commit comments