| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 802f99b commit 2d25a3b
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -60,9 +60,10 @@ const server = http.createServer(common.mustCall(function(req, res) { | |||
| 60 | 60 | ||
| 61 | 61 | // Make a bunch of requests pipelined on the same socket | |
| 62 | 62 | function generator(seeds) { | |
| 63 | + const port = server.address().port; | ||
| 63 | 64 | return seeds.map(function(r) { | |
| 64 | - return 'GET /' + r + ' HTTP/1.1\r\n' + | ||
| 65 | - `Host: localhost:${server.address().port}\r\n` + | ||
| 65 | + return `GET /${r} HTTP/1.1\r\n` + | ||
| 66 | + `Host: localhost:${port}\r\n` + | ||
| 66 | 67 | '\r\n' + | |
| 67 | 68 | '\r\n'; | |
| 68 | 69 | }).join(''); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments