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:
authorRyan Dahl <ry@tinyclouds.org>2010-02-22 03:53:20 +0300
committerRyan Dahl <ry@tinyclouds.org>2010-02-22 03:53:49 +0300
commit12d78cd1df084fd9ed63d11fab929a1af0c46bca (patch)
tree00e82a288db2412e929c5c89f7353b240bf92672 /benchmark
parent05d6da6c4af25fc417902ad1bbae9198e58ff37a (diff)
Rename sendHeader to writeHeader; allow reasonPhrase
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 75295affb23..1d758b03281 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.sendHeader( status
+ res.writeHeader( status
, { "Content-Type": "text/plain"
, "Content-Length": content_length
}
diff --git a/benchmark/static_http_server.js b/benchmark/static_http_server.js
index 3e04ae59e75..5bc48120f6e 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.sendHeader(200, {
+ res.writeHeader(200, {
"Content-Type": "text/plain",
"Content-Length": body.length
});