From b933743d83f4d86d297fb1d5fd72f7b4e9396428 Mon Sep 17 00:00:00 2001 From: Ryan Date: Thu, 4 Jun 2009 10:49:01 +0200 Subject: [PATCH] status_code -> statusCode in test_client.js --- test_client.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test_client.js b/test_client.js index ddd1d48600..eec918da1c 100644 --- a/test_client.js +++ b/test_client.js @@ -1,8 +1,8 @@ -var c = new node.http.Client(8000, "localhost") +var c = new node.http.Client(8000, "127.0.0.1"); var req = c.get("/bytes/123", [["Accept", "*/*"]]); req.finish(function (res) { - puts("response 1: " + res.status_code.toString()); + puts("response 1: " + res.statusCode.toString()); res.onBody = function (chunk) { chunk = chunk.encodeUtf8(); @@ -18,8 +18,9 @@ req.finish(function (res) { setTimeout(function () { var req2 = c.get("/something/else", []); + puts("start req2"); req2.finish(function (res) { - puts("response 2: " + res.status_code.toString()); + puts("response 2: " + res.statusCode.toString()); res.onBody = function (chunk) { chunk = chunk.encodeUtf8();