Skip to content

Commit

Permalink
nodejs 0.8 change as suggested
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford authored and guybedford committed Dec 23, 2012
1 parent 2456129 commit 7ffb9fa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/server.js
Expand Up @@ -66,7 +66,11 @@ describe('app', function(){
// create a non-connect server
var server = http.createServer(execHandler).listen(5556, function(){
// test it out
http.get('http://localhost:5556/', function(res){
http.get({
host: 'localhost',
port: 5556,
path: '/'
}, function(res){
res.setEncoding('utf8');
var data = '';
res.on('data', function(chunk){
Expand Down

0 comments on commit 7ffb9fa

Please sign in to comment.