Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Thomas <benjamin@benjaminthomas.org>2010-02-25 23:54:48 +0300
committerRyan Dahl <ry@tinyclouds.org>2010-02-26 00:01:21 +0300
commitb1b84960cedcbc033b28c0644beada614b006a9b (patch)
treef6a45724d2d82106d31202c00b4a732eb3f2c79a /benchmark
parentb08f2af34439685432c37723232edb48c10649b8 (diff)
Rename writeHeader to writeHead
Diffstat (limited to 'benchmark')
-rw-r--r--benchmark/http_simple.js2
-rw-r--r--benchmark/static_http_server.js2
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
});