Skip to content

Commit

Permalink
.close() -> .end()
Browse files Browse the repository at this point in the history
  • Loading branch information
scottgonzalez committed Apr 18, 2010
1 parent 8207b0b commit 4efd00b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function notFound(req, res) {
["Content-Length", NOT_FOUND.length]
]);
res.write(NOT_FOUND);
res.close();
res.end();
}

router.createServer = function() {
Expand All @@ -28,7 +28,7 @@ router.createServer = function() {
, ["Content-Length", body.length]
]);
res.write(body);
res.close();
res.end();
};

res.simpleJSON = function (code, obj) {
Expand All @@ -37,7 +37,7 @@ router.createServer = function() {
, ["Content-Length", body.length]
]);
res.write(body);
res.close();
res.end();
};

handler(req, res);
Expand Down Expand Up @@ -92,7 +92,7 @@ router.staticHandler = function (filename) {
loadResponseData(function () {
res.sendHeader(200, headers);
res.write(body, encoding);
res.close();
res.end();
});
};
};

0 comments on commit 4efd00b

Please sign in to comment.