Skip to content

Commit

Permalink
Fixes a case where createFile was called without an encoding during a…
Browse files Browse the repository at this point in the history
… copy.
  • Loading branch information
foundrytom committed Oct 2, 2015
1 parent 508dbc8 commit d470e62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/DAV/tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ var jsDAV_Tree = module.exports = Base.extend({
source.get(function(err, data) {
if (err)
return cbcopytreenode(err);
destinationParent.createFile(destinationName, data, function(err) {
destinationParent.createFile(destinationName, data, "binary", function(err) {
if (err)
return cbcopytreenode(err);
destinationParent.getChild(destinationName, function(err, destination) {
Expand Down

0 comments on commit d470e62

Please sign in to comment.