Skip to content

Commit

Permalink
Prevent binary-files from being converted to utf-8
Browse files Browse the repository at this point in the history
  • Loading branch information
manuth authored and SBoudrias committed May 6, 2018
1 parent 2582f35 commit cb98632
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/actions/copy-tpl.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function render(contents, filename, context, tplSettings) {
let result;

if (isBinaryFile.sync(filename)) {
result = contents.toString();
result = Buffer.from(contents, 'binary');
} else {
result = ejs.render(
contents.toString(),
Expand Down

0 comments on commit cb98632

Please sign in to comment.