diff --git a/src/main/js/modules/http/request.js b/src/main/js/modules/http/request.js index be39c97..adbe9cb 100644 --- a/src/main/js/modules/http/request.js +++ b/src/main/js/modules/http/request.js @@ -30,7 +30,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 ); });