From 78ca689b9d99ca7a514392baaec8e8f7df8827f9 Mon Sep 17 00:00:00 2001 From: percentcer Date: Thu, 1 Aug 2013 11:51:06 -0700 Subject: [PATCH] renamed incorrect 'status_code' property in the example code (should be just 'status') --- core-packages/http/doc/readme.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core-packages/http/doc/readme.rst b/core-packages/http/doc/readme.rst index 609b0ee..8b2a5ed 100644 --- a/core-packages/http/doc/readme.rst +++ b/core-packages/http/doc/readme.rst @@ -9,7 +9,7 @@ The ``http`` library allows scripts to fetch and push data from and to the inter #include "extendables/extendables.jsx"; var http = require("http"); var response = http.get("http://www.w3c.org") - if (response.status_code == 200) { + if (response.status == 200) { $.writeln(response.body); } else { $.writeln("Connection failed");