diff options
author | Benjamin Thomas <benjamin@benjaminthomas.org> | 2010-02-25 23:54:48 +0300 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2010-02-26 00:01:21 +0300 |
commit | b1b84960cedcbc033b28c0644beada614b006a9b (patch) | |
tree | f6a45724d2d82106d31202c00b4a732eb3f2c79a /benchmark | |
parent | b08f2af34439685432c37723232edb48c10649b8 (diff) |
Rename writeHeader to writeHead
Diffstat (limited to 'benchmark')
-rw-r--r-- | benchmark/http_simple.js | 2 | ||||
-rw-r--r-- | benchmark/static_http_server.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/benchmark/http_simple.js b/benchmark/http_simple.js index 1d758b03281..8bfc0972446 100644 --- a/benchmark/http_simple.js +++ b/benchmark/http_simple.js @@ -47,7 +47,7 @@ http.createServer(function (req, res) { var content_length = body.length.toString(); - res.writeHeader( status + res.writeHead( status , { "Content-Type": "text/plain" , "Content-Length": content_length } diff --git a/benchmark/static_http_server.js b/benchmark/static_http_server.js index 5bc48120f6e..5b4f220ba8c 100644 --- a/benchmark/static_http_server.js +++ b/benchmark/static_http_server.js @@ -16,7 +16,7 @@ for (var i = 0; i < bytes; i++) { } var server = http.createServer(function (req, res) { - res.writeHeader(200, { + res.writeHead(200, { "Content-Type": "text/plain", "Content-Length": body.length }); |