| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent bb7d7f3 commit 15731b4
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -70,15 +70,15 @@ const multipleForbidden = [ | |||
| 70 | 70 | ]; | |
| 71 | 71 | ||
| 72 | 72 | const server = http.createServer(function(req, res) { | |
| 73 | - multipleForbidden.forEach(function(header) { | ||
| 73 | + for (const header of multipleForbidden) { | ||
| 74 | 74 | assert.strictEqual(req.headers[header.toLowerCase()], 'foo', | |
| 75 | 75 | `header parsed incorrectly: ${header}`); | |
| 76 | - }); | ||
| 77 | - multipleAllowed.forEach(function(header) { | ||
| 76 | + } | ||
| 77 | + for (const header of multipleAllowed) { | ||
| 78 | 78 | const sep = (header.toLowerCase() === 'cookie' ? '; ' : ', '); | |
| 79 | 79 | assert.strictEqual(req.headers[header.toLowerCase()], `foo${sep}bar`, | |
| 80 | 80 | `header parsed incorrectly: ${header}`); | |
| 81 | - }); | ||
| 81 | + } | ||
| 82 | 82 | ||
| 83 | 83 | res.writeHead(200, { 'Content-Type': 'text/plain' }); | |
| 84 | 84 | res.end('EOF'); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments