Skip to content

Commit

Permalink
support node 0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlos Rodriguez committed Aug 31, 2012
1 parent 47522ac commit edae108
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/app.js
Expand Up @@ -2,9 +2,10 @@ var assert = require('assert')
, http = require('http')
, spawn = require('child_process').spawn
, resolve = require('path').resolve
, parseUrl = require('url').parse

function get (url, cb) {
http.get(url, function (res) {
http.get(parseUrl(url), function (res) {
var data = '';
res.once('error', cb);
res.on('data', function (chunk) {
Expand Down

0 comments on commit edae108

Please sign in to comment.