update http example

Oops, found a typo in code.
This commit is contained in:
Apple Lam 2015-04-28 20:13:11 +08:00
parent ebd42ed347
commit fa3940c118

View file

@ -4836,7 +4836,7 @@ The following example illustrates how to use http.request to make a request to a
```javascript
var jsResponse;
var http = require('request');
var http = require('http');
http.request('http://scriptcraftjs.org/sample.json',function(responseCode, responseBody){
jsResponse = JSON.parse( responseBody );
});