| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -27,7 +27,7 @@ server.on('stream', common.mustNotCall()); | |||
| 27 | 27 | server.listen(0, common.mustCall(() => { | |
| 28 | 28 | const client = http2.connect(`http://localhost:${server.address().port}`); | |
| 29 | 29 | ||
| 30 | - singles.forEach((i) => { | ||
| 30 | + for (const i of singles) { | ||
| 31 | 31 | assert.throws( | |
| 32 | 32 | () => client.request({ [i]: 'abc', [i.toUpperCase()]: 'xyz' }), | |
| 33 | 33 | { | |
@@ -45,7 +45,7 @@ server.listen(0, common.mustCall(() => { | |||
| 45 | 45 | message: `Header field "${i}" must only have a single value` | |
| 46 | 46 | } | |
| 47 | 47 | ); | |
| 48 | - }); | ||
| 48 | + } | ||
| 49 | 49 | ||
| 50 | 50 | server.close(); | |
| 51 | 51 | client.close(); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments