Skip to content

Commit

Permalink
maybe fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tsctx committed Mar 7, 2024
1 parent ccf7a1d commit 2c04b28
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions benchmarks/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ if (cluster.isPrimary) {
} else {
const buf = Buffer.alloc(64 * 1024, '_')

const headers = {
'Content-Length': `${buf.byteLength}`,
'Content-Type': 'text/plain; charset=UTF-8'
}
// const headers = {
// 'Content-Length': `${buf.byteLength}`,
// 'Content-Type': 'text/plain; charset=UTF-8'
// }
let i = 0
function respond (res) {
res.writeHead(200, headers)
// res.writeHead(200, headers)
res.end(buf)
}
const server = createServer((_req, res) => {
Expand Down

0 comments on commit 2c04b28

Please sign in to comment.