Skip to content

Commit

Permalink
Update example.
Browse files Browse the repository at this point in the history
  • Loading branch information
tomas committed Mar 5, 2015
1 parent de0dfba commit 3891279
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/download-to-file.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ var file = path.basename(url);

console.log('Downloading ' + file);

needle.get(url, { output: file, follow: true }, function(err, resp, data){
needle.get(url, { output: file, follow: 3 }, function(err, resp, data){
console.log('File saved: ' + process.cwd() + '/' + file);
console.log(resp.bytes + ' bytes transferred.');
});

0 comments on commit 3891279

Please sign in to comment.