diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2010-02-22 03:53:20 +0300 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2010-02-22 03:53:49 +0300 |
commit | 12d78cd1df084fd9ed63d11fab929a1af0c46bca (patch) | |
tree | 00e82a288db2412e929c5c89f7353b240bf92672 /benchmark | |
parent | 05d6da6c4af25fc417902ad1bbae9198e58ff37a (diff) |
Rename sendHeader to writeHeader; allow reasonPhrase
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 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 }); |