Update request.js

Replaced 'request' with 'http' in the example
This commit is contained in:
Christian Riis 2016-04-07 15:07:05 +02:00
parent 5a936bab20
commit 4be10dfa8f
1 changed files with 1 additions and 1 deletions

View File

@ -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 );
});