Skip to content

Commit

Permalink
fix(stat): fix stat on file
Browse files Browse the repository at this point in the history
Ensure message sent raw
  • Loading branch information
trs committed Dec 9, 2017
1 parent 4f80e11 commit 7f10649
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commands/registration/stat.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ module.exports = {
return this.reply(213, 'Status begin', ...fileList, 'Status end');
});
} else {
const fileStat = getFileStat(stat, _.get(this, 'server.options.file_format', 'ls'));
return this.reply(212, 'Status begin', fileStat, 'Status end');
const message = getFileStat(stat, _.get(this, 'server.options.file_format', 'ls'));
return this.reply(212, 'Status begin', {raw: true, message}, 'Status end');
}
})
.catch(err => {
Expand Down

0 comments on commit 7f10649

Please # to comment.