summaryrefslogtreecommitdiff
path: root/benchmark/http/http_server_for_chunky_client.js
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/http/http_server_for_chunky_client.js')
-rw-r--r--benchmark/http/http_server_for_chunky_client.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/benchmark/http/http_server_for_chunky_client.js b/benchmark/http/http_server_for_chunky_client.js
index fade895aa0..e58ba5f5a1 100644
--- a/benchmark/http/http_server_for_chunky_client.js
+++ b/benchmark/http/http_server_for_chunky_client.js
@@ -21,8 +21,11 @@ try {
} catch (e) { /* ignore */ }
server = http.createServer(function(req, res) {
- res.writeHead(200, { 'content-type': 'text/plain',
- 'content-length': '2' });
+ var headers = {
+ 'content-type': 'text/plain',
+ 'content-length': '2'
+ };
+ res.writeHead(200, headers);
res.end('ok');
});