diff options
author | Ryan <ry@tinyclouds.org> | 2009-06-04 12:49:01 +0400 |
---|---|---|
committer | Ryan <ry@tinyclouds.org> | 2009-06-04 12:49:01 +0400 |
commit | b933743d83f4d86d297fb1d5fd72f7b4e9396428 (patch) | |
tree | d615926bf141d3da2945aa03ef7e49906ee35c1f /test_client.js | |
parent | d0988da515f1b497426f9dd8b05d56aaf917fbf6 (diff) |
status_code -> statusCode in test_client.js
Diffstat (limited to 'test_client.js')
-rw-r--r-- | test_client.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test_client.js b/test_client.js index ddd1d486004..eec918da1c0 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(); |