Skip to content

Commit

Permalink
Force encoding to be null.
Browse files Browse the repository at this point in the history
Files should always download in binary format.
  • Loading branch information
khamasaki committed Sep 8, 2014
1 parent bdf94c9 commit 46c527c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions tasks/wget.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,7 @@ module.exports = function (grunt) {
return done();
}
log.verbose.writeln('Downloading', src.cyan, '->', dest.cyan);
var opts = { url: src };
if (options.encoding !== undefined) {
opts.encoding = options.encoding;
}
request(opts, function (err, res, body) {
request({ url: src, encoding: null }, function (err, res, body) {
if (err) {
done(err);
} else if (res.statusCode >= 400) {
Expand Down

0 comments on commit 46c527c

Please sign in to comment.